Skip to content

Instantly share code, notes, and snippets.

@csssecrets
Last active October 3, 2021 17:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 15 You must be signed in to fork a gist
  • Save csssecrets/bcc082518391f45b41dc to your computer and use it in GitHub Desktop.
Save csssecrets/bcc082518391f45b41dc 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);
}
<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