#loader {
    position: absolute;
    height: 80px;
    width: 80px;
    left: calc(50% - 40px);
    top: calc(50% - 40px);
    animation: animate 1.5s linear infinite;
    clip: rect(0, 80px, 80px, 40px);
    z-index: 100;
}
@keyframes animate {
    0% { 
    transform: rotate(0deg)
    }
    100% { 
    transform: rotate(220deg)
    }
}
#loader:after {
    animation: animate2 1.5s ease-in-out infinite;
    clip: rect(0, 80px, 80px, 40px);
    content:'';
    border-radius: 50%; 
    height: 80px;
    width: 80px;
    position: absolute; 
} 
@keyframes animate2 {
    0% {
        box-shadow: inset #6a848b 0 0 12px 12px;
        transform: rotate(-140deg);
    }
    50% {
        box-shadow: inset #42494b 0 0 12px 2px;
    }
    100% {
        box-shadow: inset #93960c 0 0 12px 12px;
        transform: rotate(140deg);
    }
}