Skip to content

Instantly share code, notes, and snippets.

@DeanMarkTaylor
Created October 23, 2013 15:36
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/7121035 to your computer and use it in GitHub Desktop.
Save DeanMarkTaylor/7121035 to your computer and use it in GitHub Desktop.
Untitled
.hi {
width: 50px;
height: 72px;
background-image: url("http://files.simurai.com/misc/sprite.png");
animation: play .8s steps(10) infinite;
}
@keyframes play {
from { background-position: 0px; }
to { background-position: -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