Back to the library
Cantilever panel, cascade
Variant: Cascade
The same panel opens in its 240ms beat, but its three content rows arrive one after another, 50ms apart. Use it when the panel holds a heading, a summary, and detail, and the user should read them in that order. The geometry and curve are the same as the single beat; only the start times differ. The last row lands at about 414ms, so the cascade never makes the panel feel slow.
entrancepanelstaggeranchoreddrawer
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.9-1.4" />
<title>Cantilever panel, 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: #c8c3ba;
--_grain: #bbb5ab;
--_concrete-d: #9d978c;
}
* { box-sizing: border-box; margin: 0; }
body {
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;
overflow: hidden;
}
.stage {
width: min(420px, 92vw);
display: grid;
grid-template-columns: clamp(40px, 13vw, 56px) 1fr;
grid-template-rows: auto clamp(24px, 7vw, 36px) 6px;
}
.pier {
grid-column: 1;
grid-row: 1 / 3;
display: grid;
justify-items: center;
align-content: start;
padding-top: clamp(8px, 2.5vw, 12px);
background:
linear-gradient(to top, color-mix(in oklch, var(--clay) 60%, transparent), transparent 45%),
repeating-linear-gradient(90deg, var(--_concrete-d) 0 9px, color-mix(in oklch, var(--slate) 14%, var(--_concrete-d)) 9px 10px);
border-radius: calc(2px * var(--round)) 0 0 0;
}
.key {
width: 72%;
aspect-ratio: 1;
display: grid;
place-items: center;
background: var(--clay);
color: var(--slate);
border-radius: calc(3px * var(--round));
box-shadow: inset 0 -3px 0 var(--clay-d);
animation: press var(--t) var(--ease-out) infinite both;
}
.key svg { width: 58%; height: 58%; }
.slab {
grid-column: 2;
grid-row: 1;
position: relative;
display: grid;
gap: clamp(6px, 2vw, 9px);
padding: clamp(10px, 3vw, 16px) clamp(12px, 3.5vw, 18px);
background: repeating-linear-gradient(180deg, var(--_concrete) 0 11px, var(--_grain) 11px 12px);
border-bottom: 7px solid var(--_concrete-d);
border-radius: 0 calc(2px * var(--round)) calc(2px * var(--round)) 0;
animation: slab var(--t) var(--ease-out) infinite both;
}
.slab::before {
content: "";
position: absolute;
top: 0;
right: 9%;
width: 26%;
height: 3px;
background: var(--olive);
border-radius: 0 0 999px 999px;
}
.row {
animation: row var(--t) var(--ease-out) infinite both;
animation-delay: calc(var(--_i) * 50ms / var(--speed));
}
.r1 { --_i: 1; display: grid; gap: 2px; }
.r2 { --_i: 2; }
.r3 { --_i: 3; }
.kicker {
font-size: clamp(11px, 2.8vw, 12px);
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
color: color-mix(in oklch, var(--slate) 72%, transparent);
}
.title {
font-size: clamp(18px, 5.2vw, 24px);
font-weight: 800;
font-stretch: condensed;
letter-spacing: -0.01em;
line-height: 1.05;
}
.reveals { display: flex; gap: clamp(5px, 1.6vw, 8px); }
.reveals i {
width: clamp(26px, 8vw, 36px);
height: clamp(16px, 4.6vw, 20px);
background: var(--slate);
border-radius: calc(1px * var(--round));
box-shadow: inset 0 -3px 0 var(--olive);
}
.reveals i.lit { background: var(--rust); box-shadow: inset 0 -3px 0 var(--slate); }
.meta {
font-size: clamp(11px, 2.9vw, 12.5px);
font-weight: 500;
color: color-mix(in oklch, var(--slate) 78%, transparent);
}
.shade {
grid-column: 2;
grid-row: 2;
background: linear-gradient(to bottom, color-mix(in oklch, var(--slate) 26%, transparent), color-mix(in oklch, var(--slate) 6%, transparent));
animation: slab var(--t) var(--ease-out) infinite both;
}
.ground {
grid-column: 1 / -1;
grid-row: 3;
background: color-mix(in oklch, var(--clay-d) 70%, var(--oat));
}
@keyframes press {
0% { transform: scale(1); }
2% { transform: scale(0.92); }
4.5% { transform: scale(1); }
62% { transform: scale(1); }
64% { transform: scale(0.92); }
66.5%, 100% { transform: scale(1); }
}
/* Slab keeps the single-beat 240ms open / 160ms close. */
@keyframes slab {
0%, 2% { opacity: 0; clip-path: inset(0 92% 0 0); }
9.5%, 64% { opacity: 1; clip-path: inset(0 0 0 0); }
69%, 100% { opacity: 0; clip-path: inset(0 92% 0 0); }
}
/* Each row: 200ms in, 112ms out, offset 50ms per index. Rows exit while
the slab's clip is already retracting, so the cascaded exit never shows. */
@keyframes row {
0%, 2% { opacity: 0; transform: translateX(-8px); }
8.25%, 64% { opacity: 1; transform: translateX(0); }
67.5%, 100% { opacity: 0; transform: translateX(-8px); }
}
@keyframes fade {
0%, 2% { opacity: 0.25; }
9.5%, 64% { opacity: 1; }
69%, 100% { opacity: 0.25; }
}
@media (max-width: 380px) {
.slab { border-bottom-width: 5px; }
.kicker { letter-spacing: 0.05em; }
}
@media (prefers-reduced-motion: reduce) {
.key, .row { animation: none; }
.slab, .shade {
animation-name: fade;
animation-duration: calc(var(--t) * 2);
}
}
</style>
</head>
<body>
<div class="stage" role="img" aria-label="A confirmation panel extends from its trigger button">
<div class="pier">
<div class="key"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M9 5l7 7-7 7" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="square"/></svg></div>
</div>
<div class="slab">
<div class="row r1"><p class="kicker">Level 02 · Section B</p><p class="title">Plan saved</p></div>
<div class="row r2 reveals"><i></i><i></i><i></i><i class="lit"></i></div>
<p class="row r3 meta">4 sheets synced just now</p>
</div>
<div class="shade"></div>
<div class="ground"></div>
</div>
</body>
</html>
The variant family
Same idea, one axis moved. Compare them side by side before you commit.