Sto creando un'animazione stop-motion di un gatto in esecuzione. Ho già tutte le diapositive pronte. Ma non sembra funzionare correttamente:Stop Motion Animation CSS
div {
animation: run 1s steps(10) infinite;
-webkit-animation: run 1s steps(10) infinite;
background: url(http://stash.rachelnabors.com/img/codepen/tuna_sprite.png) 0 0;
background-repeat: no-repeat;
height: 200px;
width: 400px;
}
@keyframes run {
0% {background-position: 100% 0; }
100% {background-position: 100% -2591px; }
}
@-webkit-keyframes run {
0% {background-position: 100% 0; }
100% {background-position: 100% -2591px; }
}
<div></div>
Ecco la spiegazione su come fare questo. [link] (http://24ways.org/2012/flashless-animation/) –