Back to the library
Haptic tick confirm, hairline
Variant: Hairline
The same two-tap confirmation at its lightest: an outlined badge, 1px rings that only spread to 1.6×, and a shallow 4% press. Use it on dense screens, in inline toasts, or anywhere a filled success badge would pull too much attention. The timing matches the Standard variant exactly, so the da-dum rhythm still comes through when the rings are barely visible.
confirmationfeedbackpulsesubtlerhythm
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>Haptic tick confirm — Hairline</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 */
--_ring-w: 1px;
--_ring-scale: 1.6;
--_ring-op: 0.4;
--_ring-fill: transparent;
--_ring-calm: 1.2;
--_press: 0.96;
--_rise: 2px;
--_icon-bg: var(--paper);
--_icon-ink: var(--clay);
--_icon-edge: 1.5px;
--_check-w: 2;
--_sub: color-mix(in oklch, var(--slate) 60%, var(--paper));
}
* { 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;
}
.card {
width: min(280px, 86vw);
padding: clamp(24px, 7vw, 32px) clamp(18px, 5vw, 28px);
background: var(--paper);
border: 1px solid var(--oat);
border-radius: calc(18px * var(--round));
display: grid;
justify-items: center;
gap: clamp(12px, 3.5vw, 16px);
text-align: center;
}
.beacon {
position: relative;
width: 48px;
height: 48px;
}
.ring {
position: absolute;
inset: 0;
border-radius: 50%;
border: var(--_ring-w) solid var(--clay);
background: var(--_ring-fill);
opacity: 0;
animation: ring var(--t) linear infinite;
}
/* 0.256s = 8% of the 3.2s loop: the second tap lands exactly on the icon's second press. */
.ring:nth-child(2) { animation-delay: calc(0.256s / var(--speed)); }
.icon {
position: relative;
width: 100%;
height: 100%;
border-radius: 50%;
background: var(--_icon-bg);
box-shadow: inset 0 0 0 var(--_icon-edge) var(--clay);
display: grid;
place-items: center;
animation: icon var(--t) linear infinite;
}
.icon svg { width: 24px; height: 24px; }
.icon path {
fill: none;
stroke: var(--_icon-ink);
stroke-width: var(--_check-w);
stroke-linecap: round;
stroke-linejoin: round;
}
.text {
position: relative;
display: grid;
gap: 4px;
}
.title,
.sub {
opacity: 0;
animation: text var(--t) linear infinite;
}
.title {
font-size: clamp(15px, 4.4vw, 17px);
font-weight: 600;
letter-spacing: -0.01em;
animation-delay: calc(0.05s / var(--speed));
}
.sub {
font-size: clamp(12px, 3.6vw, 13px);
color: var(--_sub);
animation-delay: calc(0.1s / var(--speed));
}
@keyframes icon {
0% { opacity: 0; transform: scale(0.94); animation-timing-function: var(--ease-out); }
7% { opacity: 1; transform: scale(1); }
12% { transform: scale(1); animation-timing-function: var(--ease-out); }
13.5% { transform: scale(var(--_press)); animation-timing-function: var(--ease-out); }
16.5% { transform: scale(1); }
20% { transform: scale(1); animation-timing-function: var(--ease-out); }
21.5% { transform: scale(var(--_press)); animation-timing-function: var(--ease-out); }
24.5% { transform: scale(1); }
86% { opacity: 1; transform: scale(1); animation-timing-function: var(--ease-out); }
91% { opacity: 0; transform: scale(0.97); }
100% { opacity: 0; transform: scale(0.97); }
}
@keyframes ring {
0%, 11.9% { opacity: 0; transform: scale(0.96); }
12% { opacity: var(--_ring-op); transform: scale(1); animation-timing-function: var(--ease-out); }
34% { opacity: 0; transform: scale(var(--_ring-scale)); }
100% { opacity: 0; transform: scale(var(--_ring-scale)); }
}
@keyframes text {
0% { opacity: 0; transform: translateY(var(--_rise)); animation-timing-function: var(--ease-out); }
7% { opacity: 1; transform: translateY(0); }
86% { opacity: 1; transform: translateY(0); animation-timing-function: var(--ease-out); }
91% { opacity: 0; transform: translateY(calc(var(--_rise) * -0.5)); }
100% { opacity: 0; transform: translateY(calc(var(--_rise) * -0.5)); }
}
@keyframes ring-soft {
0%, 12% { opacity: 0; }
14% { opacity: calc(var(--_ring-op) * 0.7); }
30% { opacity: 0; }
100% { opacity: 0; }
}
@keyframes fade {
0% { opacity: 0; }
7% { opacity: 1; }
86% { opacity: 1; }
91% { opacity: 0; }
100% { opacity: 0; }
}
@media (max-width: 380px) {
.card { gap: 12px; }
.text { gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
/* The two taps survive as two opacity beats on a parked halo: rhythm without travel. */
.ring {
transform: scale(var(--_ring-calm));
animation: ring-soft calc(var(--t) * 2) linear infinite;
}
.ring:nth-child(2) { animation-delay: calc(0.512s / var(--speed)); }
.icon { animation: fade calc(var(--t) * 2) linear infinite; }
.title { animation: fade calc(var(--t) * 2) linear infinite; animation-delay: calc(0.1s / var(--speed)); }
.sub { animation: fade calc(var(--t) * 2) linear infinite; animation-delay: calc(0.2s / var(--speed)); }
}
</style>
</head>
<body>
<div class="card" role="status">
<div class="beacon" aria-hidden="true">
<span class="ring"></span>
<span class="ring"></span>
<span class="icon">
<svg viewBox="0 0 24 24"><path d="M6.5 12.5l3.5 3.5 7.5-8" /></svg>
</span>
</div>
<div class="text">
<p class="title">Payment sent</p>
<p class="sub">$24.00 to Mara Okafor</p>
</div>
</div>
</body>
</html>
The variant family
Same idea, one axis moved. Compare them side by side before you commit.