<div></div>
*,
*:before,
*:after{
box-sizing: border-box;
-webkit-tap-highlight-color: rgba(255,255,255,0);
}
body{
display: flex;
width: 100vw;
height: 100vh;
align-items: center;
justify-content: center;
margin: 0;
background: #0d076b;
}
div{
width: 89px;
height: 89px;
position: relative;
background: rgba(255,255,255,0.13);
animation-duration: 2.5s;
animation-name: animSpin;
animation-timing-function: linear;
animation-iteration-count: infinite;
}
@keyframes animSpin{
50%{
transform: rotateZ(180deg) scale(.94);
}
100%{
transform: rotateZ(360deg) scale(1);
}
}
div,
div:before,
div:after{
border-radius: 50%;
}
div:before,
div:after{
content: '';
position: absolute;
border: 8px solid transparent;
}
div:before{
width: 75%;
height: 75%;
background: rgba(255,255,255,.13);
left: 12.5%;
top: 12.5%;
border-left: 8px solid rgba(255,255,255,.34);
border-bottom: 8px solid rgba(255,255,255,.34);
}
div:after{
width: 40%;
height: 40%;
left: 30%;
top: 30%;
border-right: 8px solid rgba(255,255,255,1);
border-left: 8px solid rgba(255,255,255,1);
border-bottom: 8px solid rgba(255,255,255,1);
}
/* Check out my profile for more single <div> CSS stuff */
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.