Back to CSS Loading Animations Orbit System Pure CSS
Share
HTML
<div class="orbit-wrap">
  <div class="orbit-core"></div>
  <div class="orbit-ring"></div>
  <div class="orbit-ring"></div>
</div>
CSS
.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;
  }
}