Live preview · fully interactive
The prompt
Build three orbiting loader dots. ## Look A 72px ring with three 8px dots, background #c4b5fd, on #08080d. Dots are placed at the top and rotated 0, 120, and 240 degrees around the center. ## Behavior Rotate the whole ring 360deg. ## Design tokens - Dots #c4b5fd; page #08080d. ## Motion - Duration 1.2s, linear, infinite. ## Constraints - Single self-contained HTML file. No libraries. CSS only. - Honor prefers-reduced-motion: reduce by skipping the loop and leaving a readable static frame - Readable at 390px width with no horizontal page scroll
The code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100%; }
body {
background: #08080d; color: #f2f2f7; font-family: Inter, system-ui, sans-serif;
min-height: 100vh; overflow: hidden;
}
.hint { position: absolute; left: 16px; top: 16px; z-index: 5; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #8a8a99; }
main { min-height: 100vh; display: grid; place-items: center; } .ring { width: 72px; height: 72px; position: relative; animation: spin 1.2s linear infinite; } .ring i { position: absolute; left: 50%; top: 0; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #c4b5fd; } .ring i:nth-child(2) { transform: rotate(120deg); transform-origin: 4px 36px; } .ring i:nth-child(3) { transform: rotate(240deg); transform-origin: 4px 36px; } @keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 420px) {
.hint { font-size: 10px; letter-spacing: 0.08em; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}
</style>
</head>
<body>
<main><div class="ring" aria-label="Loading"><i></i><i></i><i></i></div></main>
<script>
</script>
</body>
</html>About this effect
Three 8px dots sit on a 36px orbit, staggered by 120 degrees, rotating in 1.2s linear. A quieter cousin of the existing orbit loader.