Back to the library

Revision logged, cascade

Variant: Cascade

The same version-history confirmation, staggered. The connector grows up from the previous version, then the marker, the row text and the 'Saved' chip follow at 60ms intervals. Each element keeps the 180ms single-beat duration. Use it when the save should also explain itself, showing that the new revision builds on the one before it. The order follows the lineage, older to newer and mark to words, so the eye follows the line up to the confirmation.

confirmationtimelinehistorystaggerentrance

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>Revision logged, cascade</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-out: cubic-bezier(0.23, 1, 0.32, 1); /* include only if used */

  --_muted: color-mix(in oklch, var(--slate) 55%, var(--paper));
  --_halo: color-mix(in oklch, var(--clay) 22%, transparent);
  --_wash: color-mix(in oklch, var(--olive) 16%, var(--paper));
  --_ink: color-mix(in oklch, var(--olive) 70%, var(--slate));
  --_shadow: color-mix(in oklch, var(--slate) 7%, transparent);
}

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

.card {
  width: min(320px, 88vw);
  padding: clamp(14px, 4vw, 20px);
  background: var(--paper);
  border: 1px solid var(--oat);
  border-radius: calc(14px * var(--round));
  box-shadow: 0 1px 2px var(--_shadow), 0 8px 24px var(--_shadow);
}

.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--oat);
}

.title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  background: var(--_wash);
  color: var(--_ink);
  font-size: 12px;
  font-weight: 600;
  transform-origin: right center;
  animation: show-chip var(--t) var(--ease-out) calc(0.18s / var(--speed)) infinite both;
}

.chip svg { width: 12px; height: 12px; }

.log {
  list-style: none;
  margin: 0;
  padding: 0;
}

.row {
  position: relative;
  display: grid;
  grid-template-columns: 20px 1fr;
  column-gap: 12px;
  align-items: center;
  padding: 8px 0;
}

/* Runs from this row's marker down to the next row's marker. */
.link {
  position: absolute;
  left: 9px;
  top: calc(50% + 7px);
  width: 2px;
  height: calc(100% - 14px);
  border-radius: 1px;
  background: var(--oat);
}

.rail {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
}

.rail > * { grid-area: 1 / 1; }

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--oat);
}

.slot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px dashed var(--oat);
}

.text {
  display: grid;
  line-height: 1.3;
}

.text b { font-size: 14px; font-weight: 600; }
.text small { font-size: 12px; color: var(--_muted); }

/* 60ms steps in lineage order: link, then mark, then words, then the chip.
   Delays offset whole iterations, so the stagger holds on every loop. */
.new .link {
  background: var(--clay);
  animation: draw-link var(--t) var(--ease-out) 0s infinite both;
}

.new .dot {
  width: 12px;
  height: 12px;
  background: var(--clay);
  box-shadow: 0 0 0 4px var(--_halo);
  animation: set-dot var(--t) var(--ease-out) calc(0.06s / var(--speed)) infinite both;
}

.new .text { animation: write-text var(--t) var(--ease-out) calc(0.12s / var(--speed)) infinite both; }
.new .text small { color: var(--clay-d); }

/* Enter 12% → 17.625% is 180ms of the 3.2s loop; exit 82% → 86% is 128ms. */
@keyframes draw-link {
  0%, 12% { clip-path: inset(100% 0 0 0); opacity: 1; }
  17.625%, 82% { clip-path: inset(0 0 0 0); opacity: 1; }
  86% { clip-path: inset(0 0 0 0); opacity: 0; }
  100% { clip-path: inset(100% 0 0 0); opacity: 0; }
}

@keyframes set-dot {
  0%, 12% { opacity: 0; transform: scale(0.9); }
  17.625%, 82% { opacity: 1; transform: scale(1); }
  86% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.9); }
}

@keyframes write-text {
  0%, 12% { opacity: 0; transform: translateY(4px); }
  17.625%, 82% { opacity: 1; transform: translateY(0); }
  86% { opacity: 0; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(4px); }
}

@keyframes show-chip {
  0%, 12% { opacity: 0; transform: scale(0.96); }
  17.625%, 82% { opacity: 1; transform: scale(1); }
  86% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.96); }
}

@keyframes fade-soft {
  0%, 12% { opacity: 0.2; }
  22%, 82% { opacity: 1; }
  90%, 100% { opacity: 0.2; }
}

@keyframes fade-chip {
  0%, 12% { opacity: 0; }
  22%, 82% { opacity: 1; }
  90%, 100% { opacity: 0; }
}

@media (max-width: 380px) {
  .card { padding: 14px; }
  .text b { font-size: 13px; }
  .row { padding: 7px 0; }
}

/* Loop and delays both double, so the cascade keeps its proportions. */
@media (prefers-reduced-motion: reduce) {
  .new .link { animation: fade-soft calc(var(--t) * 2) var(--ease-out) 0s infinite both; }
  .new .dot { animation: fade-soft calc(var(--t) * 2) var(--ease-out) calc(0.12s / var(--speed)) infinite both; }
  .new .text { animation: fade-soft calc(var(--t) * 2) var(--ease-out) calc(0.24s / var(--speed)) infinite both; }
  .chip { animation: fade-chip calc(var(--t) * 2) var(--ease-out) calc(0.36s / var(--speed)) infinite both; }
}
</style>
</head>
<body>
  <section class="card" aria-label="Revisions">
    <header class="head">
      <span class="title">Revisions</span>
      <span class="chip" role="status">
        <svg viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M2.5 6.3l2.3 2.2 4.7-5" /></svg>
        Saved
      </span>
    </header>
    <ol class="log">
      <li class="row new">
        <span class="link"></span>
        <span class="rail"><span class="slot"></span><span class="dot"></span></span>
        <span class="text"><b>Revision 4</b><small>just now</small></span>
      </li>
      <li class="row">
        <span class="link"></span>
        <span class="rail"><span class="dot"></span></span>
        <span class="text"><b>Revision 3</b><small>2 days ago</small></span>
      </li>
      <li class="row">
        <span class="rail"><span class="dot"></span></span>
        <span class="text"><b>Revision 2</b><small>last month</small></span>
      </li>
    </ol>
  </section>
</body>
</html>

The variant family

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