Back to the library
Capsule plug-in, cascade
Variant: Cascade
The capsule docks with the same 256ms move as the single beat. Then the connector closes, the porthole lights and the note appears, each 60ms after the one before. Use it when you want the attach to read as a cause-and-effect sequence: seated, connected, powered, confirmed. On exit the order reverses at about 30ms steps, so the connector never bridges an empty bay.
confirmationmodulestate-changeattachstagger
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" />
<meta name="animation-knobs" content="speed: 0.8-1.4" />
<title>Capsule plug-in, 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 */
--_concrete: color-mix(in oklch, var(--oat) 35%, var(--paper));
--_core: color-mix(in oklch, var(--oat), var(--slate) 10%);
--_seam: color-mix(in oklch, var(--slate) 12%, transparent);
--_edge: color-mix(in oklch, var(--slate) 22%, transparent);
--_muted: color-mix(in oklch, var(--slate) 62%, transparent);
}
* { 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;
}
.stage {
width: min(340px, 90vw);
padding: clamp(14px, 4vw, 20px);
background: var(--_concrete);
border: 1px solid var(--_seam);
border-radius: calc(14px * var(--round));
overflow: hidden;
}
.head {
display: flex;
justify-content: space-between;
margin-bottom: 10px;
font-size: 11.5px;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--_muted);
}
.rack {
display: grid;
grid-template-columns: clamp(20px, 6vw, 26px) 1fr;
grid-template-rows: repeat(3, clamp(34px, 10vw, 42px));
row-gap: 8px;
}
.core {
grid-column: 1;
grid-row: 1 / -1;
background-color: var(--_core);
background-image: repeating-linear-gradient(to bottom, transparent 0 13px, var(--_seam) 13px 14px);
border-radius: calc(5px * var(--round));
}
.slot {
grid-column: 2;
position: relative;
}
.link {
position: absolute;
left: 0;
top: 50%;
width: 12px;
height: 4px;
margin-top: -2px;
background: var(--rust);
transform-origin: left center;
}
.capsule,
.slot.empty::before {
position: absolute;
inset: 0 0 0 12px;
border-radius: calc(9px * var(--round));
}
.slot.empty::before {
content: "";
border: 1.5px dashed var(--_edge);
}
.capsule {
display: flex;
align-items: center;
gap: 10px;
padding: 0 12px;
background: var(--paper);
border: 1.5px solid var(--_edge);
font-size: clamp(12px, 3.4vw, 13.5px);
}
.port {
flex: none;
width: 18px;
height: 18px;
border-radius: 50%;
border: 2px solid var(--_edge);
display: grid;
place-items: center;
}
.glow {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--clay);
}
.name {
flex: 1;
min-width: 0;
font-weight: 600;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.id {
font-size: clamp(11px, 3vw, 12px);
font-variant-numeric: tabular-nums;
color: var(--_muted);
}
.note {
display: flex;
align-items: center;
gap: 8px;
margin: 12px 0 0;
font-size: clamp(12px, 3.4vw, 13px);
}
.dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--olive);
}
/* Each part keeps the 256ms (8%) beat. Offsets are baked into the keyframes so they stay
locked to --t: entry steps 60ms (1.875%) capsule→link→port→note; exit unwinds
note→port→link→capsule at ~32ms (1%) steps, each 160ms long. */
.new-cap {
animation: cap-move var(--t) var(--ease-out) infinite, cap-op var(--t) var(--ease-out) infinite;
}
.new-link {
animation: link-move var(--t) var(--ease-out) infinite, link-op var(--t) var(--ease-out) infinite;
}
.new-glow {
animation: port-op var(--t) var(--ease-out) infinite;
}
.note {
animation: note-move var(--t) var(--ease-out) infinite, note-op var(--t) var(--ease-out) infinite;
}
@keyframes cap-move {
0%, 6% { transform: translateX(14%); }
14%, 87% { transform: translateX(0); }
92%, 100% { transform: translateX(14%); }
}
@keyframes cap-op {
0%, 6% { opacity: 0; }
14%, 87% { opacity: 1; }
92%, 100% { opacity: 0; }
}
@keyframes link-move {
0%, 7.875% { transform: scaleX(0.4); }
15.875%, 86% { transform: scaleX(1); }
91%, 100% { transform: scaleX(0.4); }
}
@keyframes link-op {
0%, 7.875% { opacity: 0; }
15.875%, 86% { opacity: 1; }
91%, 100% { opacity: 0; }
}
@keyframes port-op {
0%, 9.75% { opacity: 0; }
17.75%, 85% { opacity: 1; }
90%, 100% { opacity: 0; }
}
@keyframes note-move {
0%, 11.625% { transform: translateY(4px); }
19.625%, 84% { transform: translateY(0); }
89%, 100% { transform: translateY(4px); }
}
@keyframes note-op {
0%, 11.625% { opacity: 0; }
19.625%, 84% { opacity: 1; }
89%, 100% { opacity: 0; }
}
@media (max-width: 380px) {
.stage { padding: 14px; }
.rack { row-gap: 6px; }
.capsule { gap: 8px; padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
.new-cap { animation: cap-op calc(var(--t) * 2) var(--ease-out) infinite; }
.new-link { animation: link-op calc(var(--t) * 2) var(--ease-out) infinite; }
.new-glow { animation: port-op calc(var(--t) * 2) var(--ease-out) infinite; }
.note { animation: note-op calc(var(--t) * 2) var(--ease-out) infinite; }
}
</style>
</head>
<body>
<div class="stage" role="img" aria-label="A new module capsule plugs into the core and is confirmed attached">
<div class="head"><span>Core A</span><span>Bay 03</span></div>
<div class="rack">
<div class="core" aria-hidden="true"></div>
<div class="slot">
<i class="link"></i>
<div class="capsule"><span class="port"><span class="glow"></span></span><span class="name">Auth</span><span class="id">01</span></div>
</div>
<div class="slot">
<i class="link"></i>
<div class="capsule"><span class="port"><span class="glow"></span></span><span class="name">Storage</span><span class="id">02</span></div>
</div>
<div class="slot empty">
<i class="link new-link"></i>
<div class="capsule new-cap"><span class="port"><span class="glow new-glow"></span></span><span class="name">Search index</span><span class="id">03</span></div>
</div>
</div>
<p class="note"><span class="dot"></span>Module attached</p>
</div>
</body>
</html>
The variant family
Same idea, one axis moved. Compare them side by side before you commit.