Back to the library
Signal toast, sharp ease-out
Variant: Sharp ease-out
A 'broadcast sent' toast rises from the bottom edge, then four small stepped markers come in one after another to show which groups it reached. Use it to confirm an action that fans out to several recipients. The rise uses an exponential ease-out, so about 80% of the travel happens in the first third of its 288ms and the toast is readable almost at once. The exit is a quicker 176ms, and the toast only travels 18px.
toastconfirmationentrancestaggerease-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>Signal toast — sharp 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-accent: cubic-bezier(0.19, 1, 0.22, 1); /* the snippet's ONE characterful curve, if it has one */
--_stagger: calc(0.05s / var(--speed));
}
* { box-sizing: border-box; }
html, body { 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;
}
.toast {
width: min(340px, 88vw);
display: flex;
align-items: center;
gap: clamp(10px, 3vw, 14px);
padding: clamp(12px, 3.5vw, 16px) clamp(12px, 4vw, 18px);
background: var(--paper);
border: 1px solid var(--oat);
border-radius: calc(14px * var(--round));
box-shadow:
0 1px 2px color-mix(in oklch, var(--slate) 6%, transparent),
0 12px 28px -14px color-mix(in oklch, var(--slate) 28%, transparent);
/* Anchored to the bottom edge it rises from. */
transform-origin: 50% 100%;
animation: toast-rise var(--t) linear infinite;
will-change: transform, opacity;
}
.mark {
flex: none;
width: 36px;
height: 36px;
display: grid;
place-items: center;
border-radius: calc(10px * var(--round));
background: color-mix(in oklch, var(--clay) 14%, var(--paper));
}
.mark svg { width: 20px; height: 20px; display: block; shape-rendering: crispEdges; }
.m-outer { fill: var(--clay); }
.m-inner { fill: var(--paper); }
.m-core { fill: var(--rust); }
.copy { flex: 1; min-width: 0; }
.title, .sub {
margin: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.title {
font-size: clamp(14px, 4vw, 15.5px);
font-weight: 600;
line-height: 1.25;
}
.sub {
margin-top: 2px;
font-size: clamp(12px, 3.4vw, 13px);
line-height: 1.3;
color: color-mix(in oklch, var(--slate) 58%, var(--paper));
}
.reach {
flex: none;
display: flex;
gap: 4px;
margin: 0;
padding: 0;
list-style: none;
}
.reach li {
width: 9px;
height: 12px;
clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
background: var(--clay);
transform-origin: 50% 100%;
animation: reach-in var(--t) linear infinite;
animation-delay: calc(var(--_i) * var(--_stagger));
}
.reach li:nth-child(1) { --_i: 0; background: var(--clay); }
.reach li:nth-child(2) { --_i: 1; background: var(--olive); }
.reach li:nth-child(3) { --_i: 2; background: var(--rust); }
.reach li:nth-child(4) { --_i: 3; background: var(--clay-d); }
/* 9% of 3.2s ≈ 288ms in; 80→85.5% ≈ 176ms out, so the exit is faster than the entrance. */
@keyframes toast-rise {
0% {
opacity: 0;
transform: translateY(18px) scale(0.96);
animation-timing-function: var(--ease-accent);
}
9% { opacity: 1; transform: translateY(0) scale(1); }
80% {
opacity: 1;
transform: translateY(0) scale(1);
animation-timing-function: var(--ease-out);
}
85.5%, 100% { opacity: 0; transform: translateY(8px) scale(0.98); }
}
/* Markers reset at 90%, after the toast is already hidden, so the 0–150ms stagger never shows the reset. */
@keyframes reach-in {
0%, 6% {
opacity: 0;
transform: translateY(5px) scale(0.9);
animation-timing-function: var(--ease-accent);
}
14%, 89.9% { opacity: 1; transform: translateY(0) scale(1); }
90%, 100% { opacity: 0; transform: translateY(5px) scale(0.9); }
}
@keyframes toast-fade {
0% { opacity: 0; animation-timing-function: var(--ease-out); }
12% { opacity: 1; }
80% { opacity: 1; animation-timing-function: var(--ease-out); }
88%, 100% { opacity: 0; }
}
@keyframes reach-fade {
0%, 8% { opacity: 0; animation-timing-function: var(--ease-out); }
18%, 89.9% { opacity: 1; }
90%, 100% { opacity: 0; }
}
@media (max-width: 380px) {
.mark { width: 32px; height: 32px; }
.mark svg { width: 18px; height: 18px; }
.reach { gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
.toast {
animation: toast-fade calc(var(--t) * 2) linear infinite;
will-change: opacity;
}
.reach li {
animation: reach-fade calc(var(--t) * 2) linear infinite;
animation-delay: calc(var(--_i) * var(--_stagger) * 2);
}
}
</style>
</head>
<body>
<div class="toast" role="status">
<div class="mark" aria-hidden="true">
<svg viewBox="0 0 12 12">
<path class="m-outer" d="M5 0h2v2h2v2h2v4h-2v2h-2v2h-2v-2h-2v-2h-2v-4h2v-2h2z" />
<path class="m-inner" d="M5 3h2v1h1v1h1v2h-1v1h-1v1h-2v-1h-1v-1h-1v-2h1v-1h1z" />
<rect class="m-core" x="5" y="5" width="2" height="2" />
</svg>
</div>
<div class="copy">
<p class="title">Broadcast sent</p>
<p class="sub">Delivered to 4 groups</p>
</div>
<ol class="reach" aria-label="4 of 4 groups reached">
<li></li>
<li></li>
<li></li>
<li></li>
</ol>
</div>
</body>
</html>
The variant family
Same idea, one axis moved. Compare them side by side before you commit.