A simple bubble loader.
Forked from Fitz's Pen Bubble loader.
A Pen by Nick Nance on CodePen.
A simple bubble loader.
Forked from Fitz's Pen Bubble loader.
A Pen by Nick Nance on CodePen.
<!-- | |
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; } | |
} |