-
-
Save mofodox/2888238 to your computer and use it in GitHub Desktop.
Super simple image-free screen-reader-friendly low-markup loading animation
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
/** | |
* Super simple image-free screen-reader-friendly low-markup loading animation | |
*/ | |
html { | |
font: 100%/1.5 Helvetica Neue, Helvetica, Arial, sans-serif; | |
min-height: 100%; | |
-webkit-font-smoothing: antialiased; | |
} | |
.loading { | |
width: 12px; | |
height: 12px; | |
border: 3px dashed; | |
animation: loading 1s linear infinite; | |
overflow: hidden; | |
text-indent: 100%; | |
whitespace: no-wrap; | |
border-radius: 100%; | |
margin: 50px auto; | |
} | |
@keyframes loading { | |
to { transform: rotate(360deg); } | |
} | |
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=loading>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
{"view":"separate","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment