15 Pure CSS Loading Animations 08 / 15
Orbit System
Two rings rotate at different speeds and directions around a central core, like a miniature solar system.
The code
<div class="orbit-wrap"> <div class="orbit-core"></div> <div class="orbit-ring"></div> <div class="orbit-ring"></div> </div>
<div class="orbit-wrap">
<div class="orbit-core"></div>
<div class="orbit-ring"></div>
<div class="orbit-ring"></div>
</div>.orbit-wrap {
position: relative;
width: 60px;
height: 60px;
}
.orbit-core {
position: absolute;
inset: 0;
margin: auto;
width: 14px;
height: 14px;
border-radius: 50%;
background: #7c6cff;
}
.orbit-ring {
position: absolute;
inset: 0;
border: 2px solid transparent;
border-top-color: #ff6c8a;
border-radius: 50%;
animation: orbit 1s linear infinite;
}
.orbit-ring:nth-child(3) {
inset: 8px;
border-top-color: #2ecc8a;
animation-duration: 0.7s;
animation-direction: reverse;
}
@keyframes orbit {
to {
transform: rotate(360deg);
}
}
@media (prefers-reduced-motion: reduce) {
.orbit-wrap,
.orbit-wrap * {
animation: none !important;
}
}
.orbit-wrap {
position: relative;
width: 60px;
height: 60px;
}
.orbit-core {
position: absolute;
inset: 0;
margin: auto;
width: 14px;
height: 14px;
border-radius: 50%;
background: #7c6cff;
}
.orbit-ring {
position: absolute;
inset: 0;
border: 2px solid transparent;
border-top-color: #ff6c8a;
border-radius: 50%;
animation: orbit 1s linear infinite;
}
.orbit-ring:nth-child(3) {
inset: 8px;
border-top-color: #2ecc8a;
animation-duration: 0.7s;
animation-direction: reverse;
}
@keyframes orbit {
to {
transform: rotate(360deg);
}
}
@media (prefers-reduced-motion: reduce) {
.orbit-wrap,
.orbit-wrap * {
animation: none !important;
}
}