-
-
Save yardfarmer/bf104a5c4fd58e925e4669ab933a9b05 to your computer and use it in GitHub Desktop.
Frame-by-frame animations
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
/** | |
* 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); | |
} |
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="loader">Loading…</div> |
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
// alert('Hello world!'); |
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
{"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