Created
May 14, 2014 14:04
-
-
Save russgossett/c8c46948510046df28bf to your computer and use it in GitHub Desktop.
CSS Gif
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 class="hi"></div> | |
*/ | |
.hi { | |
width: 150px; | |
height: 300px; | |
background-image: url("http://russgossett.com/portfolio/images/tools-of-trade.png"); | |
-webkit-animation: play 5s steps(4) infinite; | |
-moz-animation: play 5s steps(4) infinite; | |
-ms-animation: play 5s steps(4) infinite; | |
-o-animation: play 5s steps(4) infinite; | |
animation: play 5s steps(4) infinite; | |
} | |
@-webkit-keyframes play { | |
from { background-position: 0px; } | |
to { background-position: -585px; } | |
} | |
@keyframes play { | |
from { background-position: 0px; } | |
to { background-position: -500px; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment