Created
August 10, 2012 02:38
-
-
Save dumaurier/3310478 to your computer and use it in GitHub Desktop.
Untitled
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="sprite"> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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