CSS spinner
Modification of Hakims CSS spinner from http://codepen.io/hakimel/full/CxliK.
by Jonas Schubert Erlandsson
HTML
<div class="spinner">
<i><b></b></i>
<i><b></b></i>
<i><b></b></i>
<i><b></b></i>
<i><b></b></i>
<i><b></b></i>
<i><b></b></i>
<i><b></b></i>
<i><b></b></i>
<i><b></b></i>
<i><b></b></i>
<i><b></b></i>
<i><b></b></i>
<i><b></b></i>
<i><b></b></i>
<i><b></b></i>
<i><b></b></i>
<i><b></b></i>
<i><b></b></i>
<i><b></b></i>
<i><b></b></i>
<i><b></b></i>
<i><b></b></i>
<i><b></b></i>
<i><b></b></i>
</div>
CSS
html, body {
overflow: hidden;
background: #111; }
.spinner {
position: absolute;
top: 50%;
left: 50%;
z-index: 2;
-webkit-perspective: 200px;
perspective: 200px; }
i {
display: block;
position: absolute;
opacity: 1; }
i b {
display: block;
width: 10px;
height: 10px;
background-color: #d7ff82;
border-radius: 10px;
box-shadow: 0px 0px 10px rgba(215, 255, 130, 0.5);
-webkit-animation-name: spin;
animation-name: spin;
-webkit-animation-duration: 3s;
animation-duration: 3s;
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite;
-webkit-animation-timing-function: ease-in-out;
animation-timing-function: ease-in-out; }
i:nth-child(1) {
-webkit-transform: rotate(14.4deg) translate3d(50px, 0, 0);
transform: rotate(14.4deg) translate3d(50px, 0, 0); }
i:nth-child(1) b {
-webkit-animation-delay: 0.12s;
animation-delay: 0.12s; }
i:nth-child(2) {
-webkit-transform: rotate(28.8deg) translate3d(50px, 0, 0);
transform: rotate(28.8deg) translate3d(50px, 0, 0); }
i:nth-child(2) b {
-webkit-animation-delay: 0.24s;
animation-delay: 0.24s; }
i:nth-child(3) {
-webkit-transform: rotate(43.2deg) translate3d(50px, 0, 0);
transform: rotate(43.2deg) translate3d(50px, 0, 0); }
i:nth-child(3) b {
-webkit-animation-delay: 0.36s;
animation-delay: 0.36s; }
i:nth-child(4) {
-webkit-transform: rotate(57.6deg) translate3d(50px, 0, 0);
transform: rotate(57.6deg) translate3d(50px, 0, 0); }
i:nth-child(4) b {
-webkit-animation-delay: 0.48s;
animation-delay: 0.48s; }
i:nth-child(5) {
-webkit-transform: rotate(72deg) translate3d(50px, 0, 0);
transform: rotate(72deg) translate3d(50px, 0, 0); }
i:nth-child(5) b {
-webkit-animation-delay: 0.6s;
animation-delay: 0.6s; }
i:nth-child(6) {
-webkit-transform: rotate(86.4deg) translate3d(50px, 0, 0);
transform: rotate(86.4deg) translate3d(50px, 0, 0); }
i:nth-child(6) b {
...