Skip to content

Instantly share code, notes, and snippets.

@ljkfgh2008
Created December 16, 2013 02:00
Show Gist options
  • Save ljkfgh2008/7981335 to your computer and use it in GitHub Desktop.
Save ljkfgh2008/7981335 to your computer and use it in GitHub Desktop.
A Pen by Stephen Zuniga.
.bubble-loader
.1
.2
.3
.4
.5
@import "compass";
body {
background: #252525;
text-align: center;
}
.bubble-loader {
display: inline-block;
margin-top: 25px;
div {
animation: bubble 1100ms forwards infinite;
background: #0cffff;
border-radius: 50%;
box-shadow: 0 0 8px #0abab5;
display: inline-block;
height: 10px;
margin: 6px;
transform: scale(0, 0);
width: 10px;
&:nth-child(2),
&:nth-child(4) {
animation-delay: 125ms;
}
&:nth-child(1),
&:nth-child(5) {
animation-delay: 250ms;
}
}
}
@keyframes bubble {
0% { transform: scale(0, 0); }
12% { transform: scale(1.5, 1.5); }
23% { transform: scale(0.5, 0.5); }
34% { transform: scale(1.2, 1.2); }
45% { transform: scale(1, 1); }
85% { transform: scale(0, 0); }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment