<div class="loader">
<div></div>
<div></div>
<span></span>
</div>
body {
font-family: 'open sans', sans-serif;
background-color: #112;
}
.loader{
width: 100px;
height: 100px;
margin: 50px auto;
border-radius: 50%;
background-color: rgba(200,20,20,0.2);
position: relative;
text-align: center;
span{
display: inline-block;
background-color: #ddd;
margin-top: 40px;
width: 20px;
height: 20px;
border-radius: 50%;
position: relative;
}
div{
left: -20px;
top: -20px;
position: absolute;
border-radius: 50%;
width: 100px;
height: 100px;
border-width: 20px;
border-style: solid;
border-right-color: #ddd;
border-left-color: #ddd;
border-top-color: transparent;
border-bottom-color: transparent;
animation: outer 1.5s ease-in-out infinite;
&:nth-child(2){
transform: rotate(90deg) scale(.7);
animation: inner 1.5s ease-in-out infinite;
}
}
}
@keyframes outer{
to{
transform:rotate(270deg) scale(.7);
}
}
@keyframes inner{
to{
transform:rotate(360deg) scale(1);
}
}
View Compiled
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.