Back to the library
Pop bubble confirm
Variant: Standard
A comic-style speech bubble pops up from a Copy link button to confirm the copy worked, then folds back into the button. Use it for confirmations that are tied to a trigger: copy, save, or share. The bubble scales from the tip of its tail, not its centre, so it reads as coming out of the button. The 200ms ease-out entrance and 144ms exit fall inside the tooltip timing range. This Standard weight uses a 3px outline, a 4px hard offset shadow, mid-density halftone dots and a 0.94 starting scale.
confirmationtooltipfeedbackhalftonespeech-bubble
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>Pop bubble confirm — Standard</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 */
--_cyan: oklch(calc(0.76 + var(--lift)) calc(0.11 * var(--chroma)) calc(var(--hue) + 180));
--_stroke: 3px;
--_border: 2.5px;
--_shadow: 4px;
--_dots: 0.5;
--_icon: 2.25;
--_type: 800;
--_from: 0.94;
--_rise: 5px;
--_press: 0.96;
}
* { 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;
}
.stage {
display: grid;
justify-items: center;
gap: clamp(2px, 1vw, 6px);
}
/* Origin sits on the tail tip so the bubble grows out of the button it answers. */
.bubble {
position: relative;
width: min(200px, 60vw);
transform-origin: 50% 92%;
opacity: 0;
animation: bubble-in var(--t) var(--ease-out) infinite both;
}
.bubble svg {
display: block;
width: 100%;
height: auto;
filter: drop-shadow(var(--_shadow) var(--_shadow) 0 var(--slate));
}
.shape { fill: var(--paper); }
.halftone { fill: url(#ben-day-std); opacity: var(--_dots); }
.dot { fill: var(--clay); }
.outline {
fill: none;
stroke: var(--slate);
stroke-width: var(--_stroke);
stroke-linejoin: round;
}
.word {
position: absolute;
inset: 6.5% 4% 29%;
display: grid;
place-items: center;
font-size: clamp(18px, 6vw, 24px);
font-weight: var(--_type);
font-style: italic;
letter-spacing: 0.03em;
text-transform: uppercase;
animation: word-in var(--t) var(--ease-out) calc(0.05s / var(--speed)) infinite both;
}
.btn {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 12px 18px;
font: inherit;
font-size: clamp(14px, 4vw, 16px);
font-weight: 700;
line-height: 1;
color: var(--slate);
background: var(--_cyan);
border: var(--_border) solid var(--slate);
border-radius: calc(10px * var(--round));
box-shadow: var(--_shadow) var(--_shadow) 0 var(--slate);
cursor: pointer;
animation: press var(--t) var(--ease-out) infinite;
}
.btn svg {
width: 18px;
height: 18px;
fill: none;
stroke: currentColor;
stroke-width: var(--_icon);
stroke-linecap: round;
stroke-linejoin: round;
}
/* 0-5% = 160ms press; bubble enters 4-10.25% (200ms), exits 70-74.5% (144ms). */
@keyframes press {
0% { transform: scale(1); }
2% { transform: scale(var(--_press)); }
5%, 100% { transform: scale(1); }
}
@keyframes bubble-in {
0%, 4% { opacity: 0; transform: translateY(var(--_rise)) scale(var(--_from)); }
10.25%, 70% { opacity: 1; transform: translateY(0) scale(1); }
74.5%, 100% { opacity: 0; transform: translateY(var(--_rise)) scale(var(--_from)); }
}
@keyframes word-in {
0%, 4% { opacity: 0; transform: translateY(calc(var(--_rise) * 0.6)); }
10.25%, 70% { opacity: 1; transform: translateY(0); }
74.5%, 100% { opacity: 0; transform: translateY(0); }
}
@keyframes bubble-fade {
0%, 4% { opacity: 0; }
12%, 70% { opacity: 1; }
78%, 100% { opacity: 0; }
}
@media (max-width: 380px) {
.btn { padding: 10px 14px; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
.btn { animation: none; }
.bubble {
animation-name: bubble-fade;
animation-duration: calc(var(--t) * 2);
}
.word { animation: none; opacity: 1; }
}
</style>
</head>
<body>
<div class="stage">
<div class="bubble" role="status">
<svg viewBox="0 0 200 124" aria-hidden="true">
<defs>
<pattern id="ben-day-std" width="7" height="7" patternUnits="userSpaceOnUse">
<circle class="dot" cx="3.5" cy="3.5" r="1.8" />
</pattern>
</defs>
<path class="shape" d="M22 8H178Q192 8 192 22V74Q192 88 178 88H116L100 114L92 88H22Q8 88 8 74V22Q8 8 22 8Z" />
<path class="halftone" d="M22 8H178Q192 8 192 22V74Q192 88 178 88H116L100 114L92 88H22Q8 88 8 74V22Q8 8 22 8Z" />
<path class="outline" d="M22 8H178Q192 8 192 22V74Q192 88 178 88H116L100 114L92 88H22Q8 88 8 74V22Q8 8 22 8Z" />
</svg>
<span class="word">Copied!</span>
</div>
<button class="btn" type="button">
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" />
<path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" />
</svg>
Copy link
</button>
</div>
</body>
</html>
The variant family
Same idea, one axis moved. Compare them side by side before you commit.