<div class="loading">
<span class="circle1"></span>
<span class="circle2"></span>
</div>
body {
height: 100vh;
background-image: linear-gradient(-60deg, #DBE6F6 0%, #C5796D 100%)
}
.loading {
position: absolute;
left: 50%;
top: 50%;
width: 20px;
height: 150px;
animation: loading 1s ease 100;
}
.loading .circle1 {
display: block;
width: 20px;
height: 20px;
border-radius: 50%;
background: #C5796D;
}
.loading .circle2 {
display: block;
width: 20px;
height: 20px;
border-radius: 50%;
background: #DBE6F6;
margin-top: 110px;
}
@keyframes loading {
0% {
transform: translate(-50%, -50%) rotate(0deg);
}
100% {
transform: translate(-50%, -50%) rotate(360deg);
}
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.