Skip to content

Instantly share code, notes, and snippets.

@DeanMarkTaylor
Created October 23, 2013 15:37
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 DeanMarkTaylor/7121040 to your computer and use it in GitHub Desktop.
Save DeanMarkTaylor/7121040 to your computer and use it in GitHub Desktop.
Untitled
.outer {
width: 50px;
height: 72px;
overflow:hidden;
}
.hi {
width: 500px;
height: 72px;
background-image: url("http://files.simurai.com/misc/sprite.png");
-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 { transform: translateX( 0px); }
to { transform: translateX(-500px); }
}
@-moz-keyframes play {
from { transform: translateX( 0px); }
to { transform: translateX(-500px); }
}
@-ms-keyframes play {
from { transform: translateX( 0px); }
to { transform: translateX(-500px); }
}
@-o-keyframes play {
from { transform: translateX( 0px); }
to { transform: translateX(-500px); }
}
@keyframes play {
from { transform: translateX( 0px); }
to { transform: translateX(-500px); }
}
<img src="http://files.simurai.com/misc/sprite.png" />
<div class="outer"><div class="hi"></div></div>
// alert('Hello world!');
{"view":"split-vertical","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