Skip to content

Instantly share code, notes, and snippets.

@guilhermef
Created January 31, 2014 19:11
Show Gist options
  • Save guilhermef/8740947 to your computer and use it in GitHub Desktop.
Save guilhermef/8740947 to your computer and use it in GitHub Desktop.
iMessage-style loader
/**
* iMessage-style loader
*/
@keyframes fade {
to { background: rgba(0,0,0,.1); }
}
.progress,
.progress:before,
.progress:after {
content: '';
display: inline-block;
width: 1em;
height: 1em;
border-radius: 50%;
background: rgba(0,0,0,.5);
animation: .6s fade linear alternate infinite;
}
.progress {
white-space: nowrap;
}
.progress:before {
margin-left: 1.3em;
animation-delay: .2s;
}
.progress:after {
margin-left: .3em;
animation-delay: .4s;
}
<div class="progress"></div>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"1","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment