Skip to content

Instantly share code, notes, and snippets.

@tdurand
Forked from chriscoyier/dabblet.css
Created November 21, 2012 15:12
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 tdurand/4125331 to your computer and use it in GitHub Desktop.
Save tdurand/4125331 to your computer and use it in GitHub Desktop.
Loading dot dot dot
/*
Loading dot dot dot
*/
body {
padding: 100px;
font-size: 62.5%;
}
.loading {
font: 16px Monaco; /* no fallback cuz spacing would probably be off... */
width: 6.1em; /* Was hoping 1 char = 1 em but didn't work out quite */
overflow: hidden;
animation: dotdotdot linear 1s infinite;
}
@keyframes dotdotdot {
0% { width: 4.5em; }
75% { width: 6.1em; }
}
<div class="loading">
Loading...
</div>
{"view":"split-vertical","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