Back to the library

Louvre light load, hairline

Variant: Hairline

The lightest version of the louvre loader: thin fins, a narrow band and a dimmer glow. Use it on a dense screen where the wait shouldn't draw attention away from content that's still usable. The timing and linear sweep match the other versions exactly. Only the fin width, band width and peak opacity drop, so it reads as the same mechanism, just quieter.

loaderambientlightlinearsubtle

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>Louvre light load — 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; /* 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: 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 */

  --_fin-w: 2px;
  --_pitch: 12px;
  --_band: 16%;
  --_glow: 0.55;
  --_fin: color-mix(in oklch, var(--slate) 80%, var(--clay-d));
  --_floor: color-mix(in oklch, var(--oat) 50%, var(--paper));
  --_core: color-mix(in oklch, var(--clay) 55%, var(--ivory));
}

* { 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;
}

.card {
  width: min(360px, 88vw);
  padding: clamp(16px, 5vw, 24px);
  display: grid;
  gap: clamp(12px, 4vw, 18px);
  background: var(--paper);
  border: 1px solid var(--oat);
  border-radius: calc(14px * var(--round));
}

.stage { display: grid; }

.screen,
.floor {
  position: relative;
  overflow: hidden;
}

.screen {
  height: clamp(60px, 19vw, 88px);
  background: var(--slate);
  border-radius: calc(4px * var(--round)) calc(4px * var(--round)) 0 0;
}

.floor {
  height: clamp(12px, 4vw, 18px);
  background: var(--_floor);
  border-radius: 0 0 calc(4px * var(--round)) calc(4px * var(--round));
}

.light,
.spill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent calc(50% - var(--_band) / 2),
    var(--clay) calc(50% - var(--_band) / 4),
    var(--_core) 50%,
    var(--clay) calc(50% + var(--_band) / 4),
    transparent calc(50% + var(--_band) / 2));
  opacity: var(--_o);
  /* ±75% carries even the widest band fully out of frame, so every pass begins in darkness */
  transform: translateX(-75%);
  animation: sweep var(--t) linear infinite;
  will-change: transform;
}

.light { --_o: var(--_glow); }
.spill { --_o: calc(var(--_glow) * 0.5); }

.fins {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg,
    var(--_fin) 0 var(--_fin-w),
    transparent var(--_fin-w) var(--_pitch));
}

/* Offset by whole pitches and skewed from the top edge so each cast stripe starts directly under its fin. */
.shadows {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--_pitch) * -4);
  right: calc(var(--_pitch) * -4);
  background: repeating-linear-gradient(90deg,
    var(--_floor) 0 var(--_fin-w),
    transparent var(--_fin-w) var(--_pitch));
  transform-origin: top left;
  transform: skewX(-35deg);
}

.label { display: grid; gap: 2px; }

.title {
  margin: 0;
  font-size: clamp(14px, 4vw, 16px);
  font-weight: 600;
  color: var(--slate);
}

.meta {
  margin: 0;
  font-size: clamp(12px, 3.4vw, 13px);
  color: color-mix(in oklch, var(--slate) 60%, var(--paper));
}

@keyframes sweep {
  from { transform: translateX(-75%); }
  to { transform: translateX(75%); }
}

@keyframes glow {
  from { opacity: calc(var(--_o) * 0.45); }
  to { opacity: var(--_o); }
}

@media (max-width: 380px) {
  .card { padding: 14px; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .light,
  .spill {
    transform: none;
    animation: glow calc(var(--t) * 2) var(--ease-in-out) infinite alternate;
  }
}
</style>
</head>
<body>
  <div class="card" role="status" aria-live="polite">
    <div class="stage" aria-hidden="true">
      <div class="screen">
        <div class="light"></div>
        <div class="fins"></div>
      </div>
      <div class="floor">
        <div class="spill"></div>
        <div class="shadows"></div>
      </div>
    </div>
    <div class="label">
      <p class="title">Preparing your export</p>
      <p class="meta">Assembling 1,284 records</p>
    </div>
  </div>
</body>
</html>

The variant family

Same idea, one axis moved. Compare them side by side before you commit.