پیشنمایش زنده
کد HTML
<div class="loader">
<div class="circle c1"></div>
<div class="circle c2"></div>
<div class="circle c3"></div>
<div class="circle c4"></div>
</div>
کد CSS
.loader {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.circle {
width: 200px;
height: 200px;
border-radius: 360px 400px;
border: 12px solid;
position: absolute;
}
.c1 {
animation: rota 2.2s linear infinite;
border-color: orange;
}
.c2 {
animation: rota 3s linear infinite;
border-color: red;
}
.c3 {
animation: rota 2s linear infinite;
border-color: #fff;
opacity: 0.5;
}
.c4 {
animation: rota 1s linear infinite;
border-color: white;
opacity: 0.8;
}
@keyframes rota {
100% {
transform: rotate(360deg);
}
}