Back to the library
Haptic tick confirm
Variant: Standard
A confirmation that works like a two-tap phone vibration: the check badge presses twice, and each press sends out a ring. Use it for payment, send and save confirmations where you want people to notice success without reading anything. The beats are 256ms apart. That gap is long enough to count as two separate taps and short enough to feel like one event, so the rhythm reads the same even if you only catch it out of the corner of your eye.
confirmationfeedbackpulsesuccessrhythm
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 — 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 */
--_ring-w: 2px;
--_ring-scale: 2.1;
--_ring-op: 0.55;
--_ring-fill: transparent;
--_ring-calm: 1.35;
--_press: 0.92;
--_rise: 4px;
--_icon-bg: var(--clay);
--_icon-ink: var(--paper);
--_icon-edge: 0px;
--_check-w: 2.5;
--_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.