Back to the library
Holo sweep loader
Variant: Standard
An indeterminate progress bar in a small dialog window. A pastel band with a holographic sheen crosses the track over and over. Use it when a task has started and you can't estimate how long it will take, like syncing or fetching assets. The sweep runs linear because it's constant motion: any easing would make it look like the work speeds up and stalls, which tells the user something false.
loaderprogressindeterminateholographicdialog
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>Holo sweep 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;
--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: 1.8s; /* 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 */
/* Pastel film, hue-locked to the knobs so a hue roll keeps the set together. */
--_pink: oklch(calc(0.86 + var(--lift)) calc(0.07 * var(--chroma)) calc(var(--hue) - 30));
--_lilac: oklch(calc(0.8 + var(--lift)) calc(0.08 * var(--chroma)) calc(var(--hue) + 260));
--_blue: oklch(calc(0.86 + var(--lift)) calc(0.06 * var(--chroma)) calc(var(--hue) + 190));
--_sea: oklch(calc(0.88 + var(--lift)) calc(0.06 * var(--chroma)) calc(var(--hue) + 130));
--_shade: color-mix(in oklch, var(--slate) 14%, transparent);
/* Weight — the only tokens that change across the family. */
--_track-h: 10px;
--_band: 36%;
--_band-op: 0.92;
--_scan-op: 0.35;
--_gloss-op: 0.55;
}
* { 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;
}
.win {
width: min(360px, 88vw);
background: var(--paper);
border: 1px solid var(--oat);
border-radius: calc(6px * var(--round));
box-shadow: 0 12px 26px -14px var(--_shade);
overflow: hidden;
}
.bar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 6px 8px 6px 12px;
background: linear-gradient(90deg, var(--_lilac), var(--_blue));
}
.title {
font-size: clamp(11px, 3vw, 12px);
letter-spacing: 0.24em;
white-space: nowrap;
}
.ctl { display: flex; gap: 4px; }
.ctl i {
width: 12px;
height: 12px;
border-radius: calc(2px * var(--round));
background: var(--paper);
opacity: 0.8;
box-shadow: inset -1px -1px 0 var(--_shade);
}
.body {
padding: clamp(14px, 4.5vw, 20px);
display: grid;
gap: clamp(8px, 2.6vw, 12px);
}
.label { margin: 0; font-size: clamp(13px, 3.8vw, 15px); font-weight: 600; }
.meta { margin: 0; font-size: clamp(11px, 3.2vw, 12.5px); opacity: 0.62; }
.track {
position: relative;
height: var(--_track-h);
border-radius: 999px;
background: var(--ivory);
box-shadow: inset 0 0 0 1px var(--oat), inset 0 1px 2px var(--_shade);
overflow: hidden;
}
/* The wrapper spans the full track, so its % translate is in track widths:
start one band-width off the left, end fully past the right. */
.sweep {
position: absolute;
inset: 0;
transform: translateX(calc(var(--_band) * -1));
animation: sweep var(--t) linear infinite;
will-change: transform;
}
.band {
position: absolute;
inset-block: 0;
left: 0;
width: var(--_band);
opacity: var(--_band-op);
background: linear-gradient(90deg, var(--_pink), var(--_lilac) 35%, var(--_blue) 65%, var(--_sea));
-webkit-mask-image: linear-gradient(90deg, transparent, var(--slate) 22%, var(--slate) 78%, transparent);
mask-image: linear-gradient(90deg, transparent, var(--slate) 22%, var(--slate) 78%, transparent);
}
.band::before {
content: "";
position: absolute;
inset: 0;
background: repeating-linear-gradient(180deg, var(--paper) 0 1px, transparent 1px 3px);
opacity: var(--_scan-op);
}
.band::after {
content: "";
position: absolute;
inset: 0 0 50% 0;
background: linear-gradient(180deg, var(--paper), transparent);
opacity: var(--_gloss-op);
}
@keyframes sweep {
from { transform: translateX(calc(var(--_band) * -1)); }
to { transform: translateX(100%); }
}
@keyframes breathe {
0%, 100% { opacity: calc(var(--_band-op) * 0.55); }
50% { opacity: var(--_band-op); }
}
@media (max-width: 380px) {
.title { letter-spacing: 0.16em; }
}
/* No travel: the band parks centred and breathes slowly so the bar still reads as busy. */
@media (prefers-reduced-motion: reduce) {
.sweep {
animation: none;
transform: translateX(calc((100% - var(--_band)) / 2));
}
.band { animation: breathe calc(var(--t) * 2.5) var(--ease-in-out) infinite; }
}
</style>
</head>
<body>
<div class="win">
<div class="bar">
<span class="title" aria-hidden="true">ダウンロード</span>
<span class="ctl" aria-hidden="true"><i></i><i></i><i></i></span>
</div>
<div class="body">
<p class="label" id="lbl">Downloading assets</p>
<div class="track" role="progressbar" aria-labelledby="lbl" aria-busy="true">
<div class="sweep"><div class="band"></div></div>
</div>
<p class="meta">Calculating time remaining…</p>
</div>
</div>
</body>
</html>
The variant family
Same idea, one axis moved. Compare them side by side before you commit.