Skip to content

Instantly share code, notes, and snippets.

@dumaurier
Created August 10, 2012 02:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dumaurier/3310478 to your computer and use it in GitHub Desktop.
Save dumaurier/3310478 to your computer and use it in GitHub Desktop.
Untitled
#sprite {
width: 200px;
height: 170px;
animation-duration:4000ms;
animation-iteration-count:infinite;
animation-timing-function:step-start;
animation-name:animate01;
animation-direction:forward;
}
@keyframes animate01 {
0% { background:url('http://lorempixel.com/200/170/sports/1/')0 0; }
20% { background:url('http://lorempixel.com/200/170/sports/2/')0 0; }
40% { background:url('http://lorempixel.com/200/170/sports/3/')0 0; }
60% { background:url('http://lorempixel.com/200/170/sports/4/')0 0; }
80% { background:url('http://lorempixel.com/200/170/sports/5/')0 0; }
100% { background:url('http://lorempixel.com/200/170/sports/1/')0 0; }
}​
<div id="sprite">
</div>​
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment