So, after some testing, apparently this code does not work in firefox.
I tested with IE, Chrome and Explorer, even safari on my phone and it worked perfectly. A friend said it showed up as broken in firefox on his end, too. Any ideas?
Sorry about that, i didn't try it on firefox. It doesn't support background-position-x / y so that means we have to use background-position that takes both x and y at the same time, which means we need a different @keyframes animation for each row. gottaloveCSS
I don't quite remember where I saw it, but I think it was in /r/elitedangerous: they have an animation on upvote, not the arrow itself but floating text, in case that helps?
23
u/Jean-Alphonse Aug 14 '16
I made a basic example with this spritesheet and this is the css:
It's on my test sub.
If you want more details check out this tutorial: http://blog.teamtreehouse.com/css-sprite-sheet-animations-steps
2
u/Cheekything Aug 15 '16
/r/hearthstone has something animated currently, works on all browsers I've cared to try it on (Chrome,FF, IE, Edge).
1
u/TheCreat Aug 15 '16
I don't quite remember where I saw it, but I think it was in /r/elitedangerous: they have an animation on upvote, not the arrow itself but floating text, in case that helps?