Back to the library
Pixel check stamp, overshoot
Variant: Overshoot
The same pixel-grid save toast, but each square lands on a springy curve. It swells a little past full size, then settles, which gives the check a cheerful stamped-in feel. Use it in friendly, consumer-facing products where a warm moment fits, and keep it off confirmations users see dozens of times a day. Each square scales from its bottom edge and the SVG allows overflow, so the overshoot pushes into the tile padding and never clips.
confirmationpixel-arttoastsaveovershoot
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="overshoot: ok" />
<title>Pixel check stamp — overshoot</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.34, 1.56, 0.64, 1); /* the snippet's ONE characterful curve, if it has one */
}
* { 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(300px, 88vw);
display: flex;
align-items: center;
gap: clamp(12px, 4vw, 16px);
padding: clamp(12px, 4vw, 16px);
background: var(--paper);
border: 1px solid var(--oat);
border-radius: calc(14px * var(--round));
}
.tile {
flex: none;
width: clamp(48px, 15vw, 60px);
aspect-ratio: 1;
padding: 18%;
background: var(--ivory);
border-radius: calc(10px * var(--round));
}
/* overflow: visible lets a square's overshoot spill into the tile padding instead of clipping. */
.tile svg {
display: block;
width: 100%;
height: 100%;
overflow: visible;
}
.slot { fill: var(--oat); }
.grid { opacity: 0.6; }
/* The spring passes ~10% beyond rest, then settles inside the same 224ms window,
so total timing matches the rest of the family. */
.px {
fill: var(--clay-d);
transform-box: fill-box;
transform-origin: 50% 100%;
opacity: 0;
animation: stamp var(--t) infinite both;
animation-delay: calc(var(--_i) * 30ms / var(--speed));
}
@keyframes stamp {
0% {
opacity: 0;
transform: translateY(-0.6px) scale(0.9);
animation-timing-function: var(--ease-accent);
}
7% { opacity: 1; transform: none; }
80% {
opacity: 1;
transform: none;
animation-timing-function: var(--ease-out);
}
84%, 100% { opacity: 0; transform: none; }
}
.text { min-width: 0; }
.label {
margin: 0;
font-size: clamp(15px, 4.4vw, 17px);
font-weight: 600;
letter-spacing: -0.01em;
animation: label var(--t) infinite both;
}
.meta {
margin: 2px 0 0;
font-size: clamp(12px, 3.6vw, 13px);
opacity: 0.6;
}
@keyframes label {
0%, 14% { opacity: 0.2; animation-timing-function: var(--ease-out); }
22% { opacity: 1; }
82% { opacity: 1; animation-timing-function: var(--ease-out); }
86%, 100% { opacity: 0.2; }
}
@media (max-width: 380px) {
.toast { gap: 12px; padding: 12px; }
}
/* Reduced motion drops the scale and travel entirely; the spring has nothing to overshoot,
so the fade falls back to the plain ease-out. */
@media (prefers-reduced-motion: reduce) {
.px {
animation-name: stamp-fade;
animation-duration: calc(var(--t) * 2);
animation-delay: calc(var(--_i) * 60ms / var(--speed));
}
.label { animation-duration: calc(var(--t) * 2); }
}
@keyframes stamp-fade {
0% { opacity: 0.15; animation-timing-function: var(--ease-out); }
7% { opacity: 1; }
80% { opacity: 1; animation-timing-function: var(--ease-out); }
84%, 100% { opacity: 0.15; }
}
</style>
</head>
<body>
<div class="toast" role="status">
<div class="tile">
<svg viewBox="0 0 8 8" aria-hidden="true">
<defs>
<pattern id="cell" width="1" height="1" patternUnits="userSpaceOnUse">
<rect class="slot" x="0.07" y="0.07" width="0.86" height="0.86" />
</pattern>
</defs>
<rect class="grid" width="8" height="8" fill="url(#cell)" />
<rect class="px" style="--_i:0" x="0.07" y="3.07" width="0.86" height="0.86" />
<rect class="px" style="--_i:1" x="0.07" y="4.07" width="0.86" height="0.86" />
<rect class="px" style="--_i:2" x="1.07" y="4.07" width="0.86" height="0.86" />
<rect class="px" style="--_i:3" x="1.07" y="5.07" width="0.86" height="0.86" />
<rect class="px" style="--_i:4" x="2.07" y="5.07" width="0.86" height="0.86" />
<rect class="px" style="--_i:5" x="2.07" y="6.07" width="0.86" height="0.86" />
<rect class="px" style="--_i:6" x="3.07" y="6.07" width="0.86" height="0.86" />
<rect class="px" style="--_i:7" x="3.07" y="5.07" width="0.86" height="0.86" />
<rect class="px" style="--_i:8" x="4.07" y="5.07" width="0.86" height="0.86" />
<rect class="px" style="--_i:9" x="4.07" y="4.07" width="0.86" height="0.86" />
<rect class="px" style="--_i:10" x="5.07" y="4.07" width="0.86" height="0.86" />
<rect class="px" style="--_i:11" x="5.07" y="3.07" width="0.86" height="0.86" />
<rect class="px" style="--_i:12" x="6.07" y="3.07" width="0.86" height="0.86" />
<rect class="px" style="--_i:13" x="6.07" y="2.07" width="0.86" height="0.86" />
<rect class="px" style="--_i:14" x="7.07" y="2.07" width="0.86" height="0.86" />
<rect class="px" style="--_i:15" x="7.07" y="1.07" width="0.86" height="0.86" />
</svg>
</div>
<div class="text">
<p class="label">Saved</p>
<p class="meta">Untitled · 2 KB</p>
</div>
</div>
</body>
</html>
The variant family
Same idea, one axis moved. Compare them side by side before you commit.