Back to the library
Spiral sync loader, round
Variant: Round
An indeterminate sync indicator. Three spiral strokes draw out from a shared centre into their own eye, then let go. Each one runs a third of a cycle behind the last, so one strand is always mid-draw and the mark never sits empty. Use it when a merge pulls from several sources and the wait has no known length. The lag is set to exactly one third of the 2.4s loop (`--_lag: calc(var(--t) / 3)`), so the three phases stay evenly spaced at any speed setting.
loadersyncsvgstrokestagger
The source
A complete HTML document. Paste it into an empty .html file and it plays — no stylesheet, script, font, or image to fetch.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Spiral sync loader, round</title>
<style>
:root {
/* Neutrals — fixed, never remixed. */
--ivory: #faf9f5;
--paper: #ffffff;
--oat: #e3dacc;
--slate: #141413;
/* Knobs — the remix API. A knob exists iff declared here and used below. */
--hue: 38.8;
--lift: 0;
--chroma: 1;
--round: 1; /* include ONLY if at least one border-radius is wrapped below */
--speed: 1;
/* Accents — derived from the knobs with the family's offsets baked in,
so one hue roll moves them together. Defaults reproduce the original hex
(#d97757 / #b85c3e / #788c5d / #b04a3f). */
--clay: oklch(calc(0.6724 + var(--lift)) calc(0.1308 * var(--chroma)) var(--hue));
--clay-d: oklch(calc(0.5797 + var(--lift)) calc(0.127 * var(--chroma)) var(--hue));
--olive: oklch(calc(0.6118 + var(--lift)) calc(0.0713 * var(--chroma)) calc(var(--hue) + 88.3));
--rust: oklch(calc(0.5408 + var(--lift)) calc(0.1357 * var(--chroma)) calc(var(--hue) - 10.3));
/* Clock — every duration in the document runs off --t. */
--cycle: 2.4s; /* the authored master loop */
--t: calc(var(--cycle) / var(--speed));
--ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); /* include only if used */
/* A third of the loop: three voices, evenly spaced, like a sung round. */
--_lag: calc(var(--t) / 3);
}
* { box-sizing: border-box; }
body {
margin: 0;
min-height: 100vh;
display: grid;
place-items: center;
background: var(--ivory);
color: var(--slate);
font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.card {
width: min(340px, 88vw);
display: flex;
align-items: center;
gap: clamp(12px, 4vw, 18px);
padding: clamp(14px, 4vw, 20px);
background: var(--paper);
border: 1px solid var(--oat);
border-radius: calc(14px * var(--round));
}
.mark {
flex: none;
width: clamp(56px, 18vw, 76px);
height: auto;
display: block;
}
.track,
.voice {
fill: none;
stroke-width: 3.5;
stroke-linecap: round;
}
.track { stroke: var(--oat); }
/* pathLength=100; the 120 gap and ±104 rest positions keep the round cap
from leaving a dot at either end while a strand is hidden. */
.voice {
stroke-dasharray: 100 120;
stroke-dashoffset: 104;
animation: trace var(--t) var(--ease-in-out) infinite;
}
.v1 { stroke: var(--clay); }
.v2 { stroke: var(--olive); animation-delay: calc(var(--_lag) * -1); }
.v3 { stroke: var(--rust); animation-delay: calc(var(--_lag) * -2); }
.hub { fill: var(--clay-d); }
.text { min-width: 0; }
.title {
margin: 0;
font-size: clamp(14px, 4vw, 16px);
font-weight: 600;
line-height: 1.3;
}
.sub {
margin: 3px 0 0;
font-size: clamp(12px, 3.4vw, 13px);
line-height: 1.35;
opacity: 0.62;
}
@keyframes trace {
0% { stroke-dashoffset: 104; }
45% { stroke-dashoffset: 0; }
55% { stroke-dashoffset: 0; }
100% { stroke-dashoffset: -104; }
}
@keyframes glow {
0%, 100% { opacity: 0.45; }
50% { opacity: 1; }
}
@media (max-width: 380px) {
.card { padding: 14px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
.voice {
stroke-dashoffset: 0;
animation: glow calc(var(--t) * 2) var(--ease-in-out) infinite;
}
.v2 { animation-delay: calc(var(--_lag) * -2); }
.v3 { animation-delay: calc(var(--_lag) * -4); }
}
</style>
</head>
<body>
<div class="card" role="status" aria-live="polite">
<svg class="mark" viewBox="12 12 76 76" aria-hidden="true">
<g class="track">
<path d="M50 50 C50 40 40 34 40 26 A10 10 0 0 1 60 26 A7 7 0 0 1 46 26 A4 4 0 0 1 54 26 A2 2 0 0 1 50 26" />
<path transform="rotate(120 50 50)" d="M50 50 C50 40 40 34 40 26 A10 10 0 0 1 60 26 A7 7 0 0 1 46 26 A4 4 0 0 1 54 26 A2 2 0 0 1 50 26" />
<path transform="rotate(240 50 50)" d="M50 50 C50 40 40 34 40 26 A10 10 0 0 1 60 26 A7 7 0 0 1 46 26 A4 4 0 0 1 54 26 A2 2 0 0 1 50 26" />
</g>
<path class="voice v1" pathLength="100" d="M50 50 C50 40 40 34 40 26 A10 10 0 0 1 60 26 A7 7 0 0 1 46 26 A4 4 0 0 1 54 26 A2 2 0 0 1 50 26" />
<path class="voice v2" pathLength="100" transform="rotate(120 50 50)" d="M50 50 C50 40 40 34 40 26 A10 10 0 0 1 60 26 A7 7 0 0 1 46 26 A4 4 0 0 1 54 26 A2 2 0 0 1 50 26" />
<path class="voice v3" pathLength="100" transform="rotate(240 50 50)" d="M50 50 C50 40 40 34 40 26 A10 10 0 0 1 60 26 A7 7 0 0 1 46 26 A4 4 0 0 1 54 26 A2 2 0 0 1 50 26" />
<circle class="hub" cx="50" cy="50" r="3" />
</svg>
<div class="text">
<p class="title">Syncing library</p>
<p class="sub">Merging changes from 3 devices</p>
</div>
</div>
</body>
</html>
The variant family
Same idea, one axis moved. Compare them side by side before you commit.