Back to the library
Gilt arch loader
Variant: Standard
A row of bulbs set around a round-headed arch, with a short lit run that moves around the frame one bulb at a time. Use it for indeterminate waits in places with a bit of ceremony, like checkout, export or onboarding, where a plain spinner would look out of place. The run advances with steps(25), matching the 25 bulbs, and its dash is offset by half a bulb so no bulb is ever half lit. That keeps it reading as lamps switching on rather than as a smooth sweep.
loadermarqueesvgstroke-dashoffsetsteps
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>Gilt arch loader — Standard</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;
--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: 3.2s; /* 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 */
--_bulb: 5px;
--_lit-dash: 20 80;
--_track-o: 0.25;
--_frame-w: 1.25px;
--_frame-o: 0.45;
--_orn-o: 0.75;
--_glow: 1.5px;
--_label-w: 500;
}
* { box-sizing: border-box; }
body {
margin: 0;
min-height: 100vh;
display: grid;
place-items: center;
background: var(--ivory);
font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
color: var(--slate);
}
.loader {
display: grid;
justify-items: center;
gap: clamp(10px, 3vw, 16px);
}
.loader svg {
width: clamp(96px, 32vw, 150px);
height: auto;
overflow: visible;
}
.frame {
fill: none;
stroke: var(--clay-d);
stroke-width: var(--_frame-w);
opacity: var(--_frame-o);
}
.ornament {
fill: var(--clay);
opacity: var(--_orn-o);
}
.track {
fill: none;
stroke: var(--clay-d);
stroke-width: var(--_bulb);
stroke-linecap: round;
stroke-dasharray: 0 4;
opacity: var(--_track-o);
}
.bulb-mask {
fill: none;
stroke: var(--paper);
stroke-width: var(--_bulb);
stroke-linecap: round;
stroke-dasharray: 0 4;
}
.glow {
filter: drop-shadow(0 0 var(--_glow) var(--clay));
}
/* Bulbs sit every 4 units of a 100-unit path. The lit dash starts at offset 2
so its edges always fall between bulbs, and steps(25) moves it exactly
one bulb per tick. */
.lit {
fill: none;
stroke: var(--clay);
stroke-width: 12px;
stroke-dasharray: var(--_lit-dash);
stroke-dashoffset: 2;
animation: chase var(--t) steps(25) infinite;
}
@keyframes chase {
from { stroke-dashoffset: 2; }
to { stroke-dashoffset: -98; }
}
.label {
font-size: clamp(11px, 3.2vw, 13px);
font-weight: var(--_label-w);
letter-spacing: 0.2em;
text-transform: uppercase;
opacity: 0.7;
}
@media (max-width: 380px) {
.loader { gap: 10px; }
.label { letter-spacing: 0.16em; }
}
@media (prefers-reduced-motion: reduce) {
/* No travelling light: every bulb glows together, slowly, at half the pace. */
.lit {
stroke-dasharray: none;
animation: hum calc(var(--t) * 2) var(--ease-in-out) infinite;
}
}
@keyframes hum {
0%, 100% { opacity: 0.25; }
50% { opacity: 0.6; }
}
</style>
</head>
<body>
<main class="loader" role="status" aria-live="polite">
<svg viewBox="0 0 120 140" aria-hidden="true">
<defs>
<mask id="bulbs" maskUnits="userSpaceOnUse" x="0" y="0" width="120" height="140">
<path class="bulb-mask" pathLength="100" d="M20 132 V62 A40 40 0 0 1 100 62 V132 Z" />
</mask>
</defs>
<path class="frame" d="M32 132 V62 A28 28 0 0 1 88 62 V132" />
<path class="ornament" d="M60 3 L65 10 L60 17 L55 10 Z" />
<path class="track" pathLength="100" d="M20 132 V62 A40 40 0 0 1 100 62 V132 Z" />
<g class="glow">
<path class="lit" pathLength="100" mask="url(#bulbs)" d="M20 132 V62 A40 40 0 0 1 100 62 V132 Z" />
</g>
</svg>
<span class="label">Loading</span>
</main>
</body>
</html>
The variant family
Same idea, one axis moved. Compare them side by side before you commit.