Skip to content

Instantly share code, notes, and snippets.

@yardfarmer
Forked from csssecrets/dabblet.css
Created May 22, 2016 09:48
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 yardfarmer/bf104a5c4fd58e925e4669ab933a9b05 to your computer and use it in GitHub Desktop.
Save yardfarmer/bf104a5c4fd58e925e4669ab933a9b05 to your computer and use it in GitHub Desktop.
Frame-by-frame animations
/**
* Frame-by-frame animations
*/
@keyframes loader {
to { background-position: -800px 0; }
}
.loader {
width: 100px; height: 100px;
text-indent: 999px; overflow: hidden; /* Hide text */
background: url(http://dabblet.com/img/loader.png) 0 0;
animation: loader 1s infinite steps(8, end);
}
<div class="loader">Loading…</div>
// alert('Hello world!');
{"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