Orbit loader

css.observer·11h ago
Open in editor
body { margin: 0; min-height: 100vh; display: grid; place-items: center; background: #0b0c0e; }
.orbit { --size: 72px; position: relative; width: var(--size); aspect-ratio: 1; }
.orbit span { position: absolute; inset: 0; animation: spin 1.2s linear infinite; }
.orbit span::before { content: ""; position: absolute; top: 0; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #c8f560; }
.orbit span:nth-child(2) { inset: 14px; animation-duration: .9s; } .orbit span:nth-child(2)::before { background: #82aaff; }
.orbit span:nth-child(3) { inset: 26px; animation-duration: .6s; } .orbit span:nth-child(3)::before { background: #ff7a90; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .orbit span { animation-duration: 6s; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

Usage

Keep the `role="status"` and visually hidden label. Size with `--size`.