Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS CSS Animation (background-image position) – but Responsive? Re: CSS Animation (background-image position) – but Responsive?

#131957
iknowdavehouse
Participant

Thanks, but because I’m animating a sprite this actually re-sizes the whole image so you can see the other frames once it gets re-sized.

I need to set the .ani div to width 100% and height 24.68% (so it maintains that ratio) and the background image to 100% with a size of cover.

However if I give the div any height other than a fixed value it just disappears.

I will set up a copepen account shortly! Thanks