Skip to content

Instantly share code, notes, and snippets.

@nnance
Created September 9, 2014 12:51
Show Gist options
  • Save nnance/ba6ada554998e73ec970 to your computer and use it in GitHub Desktop.
Save nnance/ba6ada554998e73ec970 to your computer and use it in GitHub Desktop.
A Pen by Nick Nance.
<!--
Tweaked from http://tobiasahlin.com/spinkit/
Take a look for other cool loaders.
-->
<div class="spinner" aria-busy="true">
<span class="bubble1"></span>
<span class="bubble2"></span>
<span class="bubble3"></span>
</div>
body {
background-color:white;
}
.spinner {
margin: 100px auto 0;
width: 320px;
text-align: center;
}
.spinner > span {
width: 70px;
height: 70px;
background-color: transparent;
border:16px solid grey;
border-radius: 50%;
display: inline-block;
animation: pulse 1.1s infinite ease-in-out;
animation-fill-mode:both;
}
.spinner .bubble1 {
animation-delay: 0s;
}
.spinner .bubble2 {
animation-delay: 0.15s
}
.spinner .bubble3 {
animation-delay: 0.3s
}
@keyframes pulse {
0%, 80%, 100% { transform: scale(0.6); opacity:0.2; }
40% { transform: scale(1.0); opacity:1; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment