Back to the library
Flagged row eject, ease-out
Variant: Ease-out
One row in a member list gets a rust wash and a 'Flagged' tag. It then slides out of the card, and the rows below move up to close the gap. Use it to confirm a removal in a moderation queue, a team roster or any list where one entry is taken out on purpose. This is the curve that follows the standards: the exit uses a strong ease-out so the row starts moving right away, and the gap closes with an ease-in-out because the rows below are moving on screen.
moderationlistremovestate-changeease-out
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>Flagged row eject, ease-out</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 */
--ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); /* include only if used */
--_row: 38px;
--_gap: 6px;
--_pitch: calc(var(--_row) + var(--_gap));
}
@media (max-width: 380px) {
:root { --_row: 34px; }
}
* { 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(12px, 4vw, 16px);
background: var(--paper);
border: 1px solid var(--oat);
border-radius: calc(16px * var(--round));
}
.head {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
}
.title {
font-size: clamp(13px, 3.6vw, 14px);
font-weight: 600;
}
.count {
display: grid;
padding: 3px 9px;
border-radius: 999px;
background: color-mix(in oklch, var(--olive) 18%, var(--paper));
font-size: 12px;
font-weight: 500;
font-variant-numeric: tabular-nums;
}
.n {
grid-area: 1 / 1;
animation: count-old var(--t) linear infinite both;
animation-delay: calc(0.05s / var(--speed));
}
.n3 { animation-name: count-new; }
.list {
list-style: none;
margin: 0;
padding: 0;
display: grid;
gap: var(--_gap);
overflow: hidden;
}
.row {
position: relative;
height: var(--_row);
display: flex;
align-items: center;
gap: 10px;
padding: 0 12px;
border-radius: calc(10px * var(--round));
background: color-mix(in oklch, var(--oat) 28%, var(--paper));
overflow: hidden;
animation: enter var(--t) linear infinite both;
animation-delay: calc(var(--_i) * 0.05s / var(--speed));
}
.row.below { animation-name: close; }
.row.flag { animation-name: eject; }
.av {
position: relative;
z-index: 1;
flex: none;
width: 22px;
height: 22px;
border-radius: 50%;
background: var(--clay);
}
.row:nth-child(2) .av { background: var(--rust); }
.row:nth-child(3) .av { background: var(--olive); }
.row:nth-child(4) .av { background: var(--clay-d); }
.lines {
position: relative;
z-index: 1;
flex: 1;
display: grid;
gap: 5px;
}
.lines i {
display: block;
height: 7px;
border-radius: 999px;
background: var(--oat);
}
.lines i + i {
height: 6px;
background: color-mix(in oklch, var(--oat) 60%, var(--paper));
}
.row:nth-child(1) i { width: 58%; }
.row:nth-child(1) i + i { width: 34%; }
.row:nth-child(2) i { width: 46%; }
.row:nth-child(2) i + i { width: 28%; }
.row:nth-child(3) i { width: 66%; }
.row:nth-child(3) i + i { width: 40%; }
.row:nth-child(4) i { width: 52%; }
.row:nth-child(4) i + i { width: 30%; }
.wash {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: flex-end;
padding-right: 12px;
background: color-mix(in oklch, var(--rust) 14%, var(--paper));
box-shadow: inset 3px 0 0 var(--rust);
color: var(--rust);
font-size: clamp(11px, 3vw, 12px);
font-weight: 600;
animation: wash var(--t) linear infinite both;
animation-delay: calc(var(--_i) * 0.05s / var(--speed));
}
@keyframes enter {
0% { opacity: 0; transform: translateY(8px); animation-timing-function: var(--ease-out); }
7.5%, 88% { opacity: 1; transform: translateY(0); animation-timing-function: var(--ease-out); }
94%, 100% { opacity: 0; transform: translateY(0); }
}
/* The exit (200ms) is shorter than the entrance (240ms). The rows below start
moving about 180ms in, so the gap closes as the row leaves. */
@keyframes eject {
0% { opacity: 0; transform: translate(0, 8px) scale(1); animation-timing-function: var(--ease-out); }
7.5% { opacity: 1; transform: translate(0, 0) scale(1); }
40% { opacity: 1; transform: translate(0, 0) scale(1); animation-timing-function: var(--ease-out); }
46.25%, 100% { opacity: 0; transform: translate(55%, 0) scale(0.97); }
}
@keyframes close {
0% { opacity: 0; transform: translateY(8px); animation-timing-function: var(--ease-out); }
7.5% { opacity: 1; transform: translateY(0); }
44% { opacity: 1; transform: translateY(0); animation-timing-function: var(--ease-in-out); }
52.5%, 88% { opacity: 1; transform: translateY(calc(-1 * var(--_pitch))); animation-timing-function: var(--ease-out); }
94%, 100% { opacity: 0; transform: translateY(calc(-1 * var(--_pitch))); }
}
@keyframes wash {
0%, 22% { clip-path: inset(0 100% 0 0); animation-timing-function: var(--ease-out); }
30%, 100% { clip-path: inset(0 0 0 0); }
}
@keyframes count-old {
0%, 46% { opacity: 1; animation-timing-function: var(--ease-out); }
50%, 94% { opacity: 0; animation-timing-function: var(--ease-out); }
100% { opacity: 1; }
}
@keyframes count-new {
0%, 46% { opacity: 0; animation-timing-function: var(--ease-out); }
50%, 94% { opacity: 1; animation-timing-function: var(--ease-out); }
100% { opacity: 0; }
}
@keyframes r-fade {
0% { opacity: 0; animation-timing-function: var(--ease-out); }
7.5%, 88% { opacity: 1; animation-timing-function: var(--ease-out); }
94%, 100% { opacity: 0; }
}
@keyframes r-eject {
0% { opacity: 0; animation-timing-function: var(--ease-out); }
7.5%, 40% { opacity: 1; animation-timing-function: var(--ease-out); }
46.25%, 100% { opacity: 0; }
}
@keyframes r-wash {
0%, 22% { opacity: 0; animation-timing-function: var(--ease-out); }
30%, 100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
.row, .wash, .n { animation-duration: calc(var(--t) * 2); }
.row, .row.below { animation-name: r-fade; }
.row.flag { animation-name: r-eject; }
.wash { animation-name: r-wash; }
}
</style>
</head>
<body>
<div class="card">
<div class="head">
<span class="title">Team</span>
<span class="count"><span class="n n4">4 active</span><span class="n n3">3 active</span></span>
</div>
<ul class="list">
<li class="row" style="--_i: 0"><span class="av"></span><span class="lines"><i></i><i></i></span></li>
<li class="row flag" style="--_i: 1"><span class="wash">Flagged</span><span class="av"></span><span class="lines"><i></i><i></i></span></li>
<li class="row below" style="--_i: 2"><span class="av"></span><span class="lines"><i></i><i></i></span></li>
<li class="row below" style="--_i: 3"><span class="av"></span><span class="lines"><i></i><i></i></span></li>
</ul>
</div>
</body>
</html>
The variant family
Same idea, one axis moved. Compare them side by side before you commit.