#spinner.active {
    display: block;
}
#spinner {
    display: none;
    position: absolute;
    height: 60px;
    width: 60px;
    margin: 0 auto;
    top: 43%;
    /*margin-right: auto;*/
    left: 0;
    right: 0;
    z-index: 1;

}
.ball {
    position: absolute;
    display: block;
    background-color: #567f9a;
    left: 24px;
    width: 12px;
    height: 12px;
    border-radius: 6px;
    box-shadow: 0 0 0 1200px rgba(0,0,0,0.4);
    -webkit-box-shadow: 0 0 0 1200px rgba(0, 0, 0, 0.4);
}
#first {
    animation-timing-function: cubic-bezier(0.5, 0.3, 0.9, 0.9);
    animation-name: rotate;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    transform-origin: 6px 30px;
    animation-timing-function: cubic-bezier(0.5, 0.3, 0.9, 0.9);
    animation-name: rotate;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    transform-origin: 6px 30px;

}
#second {
    animation-timing-function: cubic-bezier(0.5, 0.5, 0.9, 0.9);
    animation-name: rotate;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    transform-origin: 6px 30px;
    animation-timing-function: cubic-bezier(0.5, 0.5, 0.9, 0.9);
    animation-name: rotate;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    transform-origin: 6px 30px;
}
#third {
    animation-timing-function: cubic-bezier(0.5, 0.7, 0.9, 0.9);
    animation-name: rotate;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    transform-origin: 6px 30px;
    animation-timing-function: cubic-bezier(0.5, 0.7, 0.9, 0.9);
    animation-name: rotate;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    transform-origin: 6px 30px;
}
@keyframes rotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    100% {
        transform: rotate(1440deg) scale(1);
    }
}​

@keyframes rotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    100% {
        transform: rotate(1440deg) scale(1);
    }
}