D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
clhenrick
Full window
Github gist
css3 sprite animation, yay!
<html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <style type="text/css"> #sprite { width: 192px; height: 424px; margin: 2% auto; background: url('https://raw.githubusercontent.com/clhenrick/am-i-rent-stabilized/dev/assets/png/checking-sprite.png') left center; -webkit-animation: play .8s steps(10) infinite; -moz-animation: play .8s steps(10) infinite; -ms-animation: play .8s steps(10) infinite; -o-animation: play .8s steps(10) infinite; animation: play .8s steps(10) infinite; } @-webkit-keyframes play { from { background-position: 0px; } to { background-position: -1920px; } } @-moz-keyframes play { from { background-position: 0px; } to { background-position: -1920px; } } @-ms-keyframes play { from { background-position: 0px; } to { background-position: -1920px; } } @-o-keyframes play { from { background-position: 0px; } to { background-position: -1920px; } } @keyframes play { from { background-position: 0px; } to { background-position: -1920px; } } </style> </head> <body> <div id="sprite"></div> </body> </html>