Back to the library

Bead strand send loader, hairline

Variant: Hairline

The same nine-bead loader, scaled down for dense lists, inline composer footers, or anywhere the send state should be noticed without being looked at. It uses 7px beads on a 1px thread, rises only 2px, and fills to 80% opacity, so the wave reads as a soft flicker of colour rather than movement. Timing and easing match the Standard variant exactly, so the variants can be swapped without retuning.

loadersendingwavesubtlebeads

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>Bead strand send loader — 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: 2.4s;
  --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);

  /* Weight — the only values that differ across the family. */
  --_bead: 7px;
  --_ring: 1px;
  --_thread: 1px;
  --_rise: 2px;
  --_ink: 0.8;
}

* { 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);
  background: var(--paper);
  border: 1px solid var(--oat);
  border-radius: calc(14px * var(--round));
  padding: clamp(16px, 5vw, 24px) clamp(18px, 6vw, 28px);
  display: grid;
  gap: clamp(14px, 4vw, 20px);
}

.label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: clamp(13px, 3.6vw, 15px);
}
.label strong { font-weight: 600; }
.label span { font-size: clamp(11px, 3vw, 12px); opacity: 0.6; }

.strand {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: calc(var(--_bead) + var(--_rise) * 2);
}
.strand::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: var(--_thread);
  transform: translateY(-50%);
  background: var(--oat);
  border-radius: 999px;
}

.bead {
  position: relative;
  width: var(--_bead);
  height: var(--_bead);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 var(--_ring) var(--oat);
  animation: rise var(--t) var(--ease-in-out) infinite;
  /* 9 beads x 90ms: the last bead clears exactly as the cycle wraps. */
  animation-delay: calc(var(--_i) * 0.09s / var(--speed));
}
.bead::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--_c);
  opacity: 0;
  transform: scale(0.9);
  animation: fill var(--t) var(--ease-out) infinite;
  animation-delay: calc(var(--_i) * 0.09s / var(--speed));
}

.bead:nth-child(1) { --_i: 0; --_c: var(--clay); }
.bead:nth-child(2) { --_i: 1; --_c: var(--slate); }
.bead:nth-child(3) { --_i: 2; --_c: var(--olive); }
.bead:nth-child(4) { --_i: 3; --_c: var(--clay-d); }
.bead:nth-child(5) { --_i: 4; --_c: var(--rust); }
.bead:nth-child(6) { --_i: 5; --_c: var(--clay-d); }
.bead:nth-child(7) { --_i: 6; --_c: var(--olive); }
.bead:nth-child(8) { --_i: 7; --_c: var(--slate); }
.bead:nth-child(9) { --_i: 8; --_c: var(--clay); }

@keyframes rise {
  0% { transform: translateY(0); animation-timing-function: var(--ease-out); }
  14% { transform: translateY(calc(var(--_rise) * -1)); animation-timing-function: var(--ease-in-out); }
  36%, 100% { transform: translateY(0); }
}

/* Fill takes 14% of the cycle, clearing only 10%: exit faster than enter. */
@keyframes fill {
  0% { opacity: 0; transform: scale(0.9); }
  14% { opacity: var(--_ink); transform: scale(1); }
  60% { opacity: var(--_ink); transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(0.94); }
}

@keyframes fill-soft {
  0% { opacity: 0.15; }
  14% { opacity: calc(var(--_ink) * 0.75); }
  60% { opacity: calc(var(--_ink) * 0.75); }
  70%, 100% { opacity: 0.15; }
}

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

@media (prefers-reduced-motion: reduce) {
  .bead { animation: none; }
  .bead::after {
    opacity: 0.15;
    transform: none;
    animation: fill-soft calc(var(--t) * 2) var(--ease-in-out) infinite;
    animation-delay: calc(var(--_i) * 0.18s / var(--speed));
  }
}
</style>
</head>
<body>
  <div class="card" role="status" aria-live="polite">
    <div class="label"><strong>Sending message</strong><span>to 3 people</span></div>
    <div class="strand" aria-hidden="true">
      <i class="bead"></i><i class="bead"></i><i class="bead"></i>
      <i class="bead"></i><i class="bead"></i><i class="bead"></i>
      <i class="bead"></i><i class="bead"></i><i class="bead"></i>
    </div>
  </div>
</body>
</html>

The variant family

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