Back to the library
Process trace stepper, hairline
Variant: Hairline
This is the process-trace stepper with 1px strokes, small nodes and a 0.96 entrance scale, so each step barely grows as it fills. Use it in dense settings panels or inline in a form, where the progress should be readable without competing with the content around it. Timing and easing match the standard version exactly. Unreached labels are kept a little brighter (0.5 opacity), because thin strokes give the eye less to hold on to.
stepperprogressloaderstate-indicationhairline
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>Process trace stepper — hairline</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;
--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;
--t: calc(var(--cycle) / var(--speed));
--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
--ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
--_track-w: 1;
--_line-w: 1.25;
--_ring-w: 1;
--_check-w: 1.25;
--_dim: 0.5;
}
* { box-sizing: border-box; margin: 0; }
body {
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 {
--_travel: 0.96;
width: min(340px, 88vw);
background: var(--paper);
border: 1px solid var(--oat);
border-radius: calc(14px * var(--round));
padding: clamp(16px, 5vw, 24px);
}
.title { font-size: clamp(14px, 4vw, 16px); font-weight: 600; }
.sub { font-size: clamp(11px, 3.2vw, 13px); opacity: 0.6; margin-top: 4px; }
.stage {
margin-top: clamp(14px, 4vw, 20px);
animation: stage var(--t) var(--ease-out) infinite;
}
.trace { display: block; width: 100%; height: auto; overflow: visible; }
.track { fill: none; stroke: var(--oat); stroke-width: var(--_track-w); }
.line {
fill: none;
stroke: var(--clay);
stroke-width: var(--_line-w);
stroke-dasharray: 240;
stroke-dashoffset: 240;
/* The timing function applies per keyframe segment, so each hop eases in and out on its own. */
animation: line var(--t) var(--ease-in-out) infinite;
}
.ring { fill: var(--paper); stroke: var(--oat); stroke-width: var(--_ring-w); }
.fill {
--_o0: 0;
--_from: var(--_travel);
fill: var(--clay);
opacity: 0;
transform-box: fill-box;
transform-origin: center;
}
.check {
fill: none;
stroke: var(--paper);
stroke-width: var(--_check-w);
stroke-linecap: round;
stroke-linejoin: round;
stroke-dasharray: 1;
stroke-dashoffset: 1;
opacity: 0;
animation: check var(--t) var(--ease-out) infinite;
}
.labels {
list-style: none;
padding: 0;
margin-top: 6px;
display: grid;
grid-template-columns: repeat(4, 1fr);
text-align: center;
font-size: clamp(11px, 3vw, 12px);
}
.labels li { --_o0: var(--_dim); --_from: 1; opacity: var(--_dim); }
.n1 { animation: n1 var(--t) var(--ease-out) infinite; }
.n2 { animation: n2 var(--t) var(--ease-out) infinite; }
.n3 { animation: n3 var(--t) var(--ease-out) infinite; }
.n4 { animation: n4 var(--t) var(--ease-out) infinite; }
@keyframes stage {
0% { opacity: 0; }
5%, 88% { opacity: 1; }
93%, 100% { opacity: 0; }
}
@keyframes line {
0%, 10% { stroke-dashoffset: 240; }
22%, 28% { stroke-dashoffset: 160; }
40%, 46% { stroke-dashoffset: 80; }
58%, 100% { stroke-dashoffset: 0; }
}
@keyframes n1 {
0%, 4% { opacity: var(--_o0); transform: scale(var(--_from)); }
10%, 100% { opacity: 1; transform: scale(1); }
}
@keyframes n2 {
0%, 22% { opacity: var(--_o0); transform: scale(var(--_from)); }
28%, 100% { opacity: 1; transform: scale(1); }
}
@keyframes n3 {
0%, 40% { opacity: var(--_o0); transform: scale(var(--_from)); }
46%, 100% { opacity: 1; transform: scale(1); }
}
@keyframes n4 {
0%, 58% { opacity: var(--_o0); transform: scale(var(--_from)); }
64%, 100% { opacity: 1; transform: scale(1); }
}
@keyframes check {
0%, 62% { stroke-dashoffset: 1; opacity: 0; }
64% { opacity: 1; }
72%, 100% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes line-soft {
0%, 10% { opacity: 0.25; }
58%, 100% { opacity: 1; }
}
@keyframes check-soft {
0%, 62% { opacity: 0; }
72%, 100% { opacity: 1; }
}
@media (max-width: 380px) {
.card { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
.card { --_travel: 1; }
.stage, .n1, .n2, .n3, .n4 { animation-duration: calc(6.4s / var(--speed)); }
.line {
stroke-dashoffset: 0;
animation: line-soft calc(6.4s / var(--speed)) var(--ease-in-out) infinite;
}
.check {
stroke-dashoffset: 0;
animation: check-soft calc(6.4s / var(--speed)) var(--ease-out) infinite;
}
}
</style>
</head>
<body>
<main class="card" role="status" aria-label="Running checks">
<p class="title">Running checks</p>
<p class="sub">Each step is logged as it completes</p>
<div class="stage">
<svg class="trace" viewBox="0 0 320 48" aria-hidden="true">
<path class="track" d="M40 24 H280" />
<path class="line" d="M40 24 H280" pathLength="240" />
<circle class="ring" cx="40" cy="24" r="6" />
<circle class="ring" cx="120" cy="24" r="6" />
<circle class="ring" cx="200" cy="24" r="6" />
<circle class="ring" cx="280" cy="24" r="6" />
<circle class="fill n1" cx="40" cy="24" r="6.5" />
<circle class="fill n2" cx="120" cy="24" r="6.5" />
<circle class="fill n3" cx="200" cy="24" r="6.5" />
<circle class="fill n4" cx="280" cy="24" r="6.5" />
<path class="check" d="M277.2 24.2 L279.2 26.2 L282.8 21.9" pathLength="1" />
</svg>
<ol class="labels">
<li class="n1">Inputs</li>
<li class="n2">Checks</li>
<li class="n3">Review</li>
<li class="n4">Done</li>
</ol>
</div>
</main>
</body>
</html>
The variant family
Same idea, one axis moved. Compare them side by side before you commit.