Alert triage — snooze keeps its seat
Variant: Snooze
A firing alert is snoozed and does not leave: it keeps its row and its words and only its name dims, because a snooze is a promise to come back and an alert that left the list would be one you had to remember to look for. The dot becomes a small clock that drains linearly from twelve o’clock — an hour is an hour — so a glance says roughly when it returns without reading “Back at 10:41”. The alert is born with one ring and gets a moment of firing before the press, so there is something to compare against: when the clock empties the row wakes in place, still firing, with exactly one ring the size of that first one and no larger — returning from snooze is a reminder, not an escalation, and an alert that comes back louder than it left punishes the person who snoozed it. The press is 80ms down and the label changes at the bottom of the dip. Reach for it on alert lists, inbox reminders and any deferral that should stay visible while it waits.
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>Triage — snooze keeps its seat</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;
--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. */
--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 — 8s, so 1% is 80ms. Fires with one ring at 1%, pressed at
16%, asleep from 17% to 70% (4.24s standing in for the hour), awake
and still firing after. */
--cycle: 8s;
--t: calc(var(--cycle) / var(--speed));
--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
--_muted: color-mix(in srgb, var(--slate) 54%, transparent);
--_sleep: color-mix(in srgb, var(--slate) 40%, var(--paper));
--_rust-tint: color-mix(in srgb, var(--rust) 10%, var(--paper));
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
min-height: 100vh;
display: grid;
place-items: center;
background: var(--ivory);
font-family:
system-ui,
-apple-system,
'Segoe UI',
Roboto,
sans-serif;
color: var(--slate);
}
.card {
width: min(320px, 88vw);
background: var(--paper);
border: 1px solid var(--oat);
border-radius: calc(14px * var(--round));
overflow: hidden;
}
.head {
display: flex;
justify-content: space-between;
padding: 10px 14px;
font-size: 11.5px;
color: var(--_muted);
border-bottom: 1px solid var(--oat);
}
.row {
display: grid;
grid-template-columns: 22px 1fr auto;
align-items: center;
gap: 10px;
padding: clamp(12px, 4vw, 16px) 14px;
}
.sig {
display: grid;
place-items: center;
width: 22px;
height: 22px;
}
.sig > * {
grid-area: 1 / 1;
}
.dot,
.ring {
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--rust);
}
.dot {
animation: dot var(--t) infinite;
}
@keyframes dot {
0%,
16% {
opacity: 1;
animation-timing-function: ease;
}
18%,
70% {
opacity: 0;
animation-timing-function: ease;
}
71.5%,
100% {
opacity: 1;
}
}
/* One ring on waking, the same size as the alert's first one and no
larger. Coming back from snooze is a reminder, not an escalation —
an alert that returns louder than it left punishes the snooze. */
.ring {
opacity: 0;
animation: ring var(--t) infinite;
}
@keyframes ring {
0%,
1% {
opacity: 0;
transform: scale(1);
}
1.1% {
opacity: 0.55;
transform: scale(1);
animation-timing-function: var(--ease-out);
}
10%,
69.9% {
opacity: 0;
transform: scale(2.6);
}
70% {
opacity: 0;
transform: scale(1);
}
70.1% {
opacity: 0.55;
transform: scale(1);
animation-timing-function: var(--ease-out);
}
79%,
100% {
opacity: 0;
transform: scale(2.6);
}
}
/* The snooze, drawn as the time left. It drains at one linear rate —
an hour is an hour — from twelve o'clock, so a glance tells you
roughly when it is coming back without reading the label. */
.clock {
width: 18px;
height: 18px;
transform: rotate(-90deg);
fill: none;
stroke-width: 2;
opacity: 0;
animation: clock-show var(--t) infinite;
}
.clock .track {
stroke: var(--oat);
}
.clock .arc {
stroke: var(--_sleep);
stroke-linecap: round;
stroke-dasharray: 37.7 40;
animation: drain var(--t) linear infinite;
}
@keyframes clock-show {
0%,
16% {
opacity: 0;
animation-timing-function: ease;
}
18%,
69.5% {
opacity: 1;
animation-timing-function: ease;
}
70.5%,
100% {
opacity: 0;
}
}
@keyframes drain {
0%,
17% {
stroke-dashoffset: 0;
}
70%,
100% {
stroke-dashoffset: 38.5;
}
}
.txt {
display: grid;
gap: 3px;
min-width: 0;
}
.name {
animation: txt var(--t) infinite;
}
/* Asleep, the row keeps its seat and its words — only its name dims;
the muted line under it keeps its weight, since it now carries the
return time.
Snooze is a promise to come back, and an alert that left the list
would be one you had to remember to look for. */
@keyframes txt {
0%,
16% {
opacity: 1;
animation-timing-function: ease;
}
18%,
70% {
opacity: 0.45;
animation-timing-function: ease;
}
71.5%,
100% {
opacity: 1;
}
}
.name {
font-size: 13px;
font-weight: 600;
letter-spacing: -0.01em;
}
.stack {
display: grid;
}
.stack > * {
grid-area: 1 / 1;
}
.sub {
font-size: 11.5px;
color: var(--_muted);
}
.name,
.sub span {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.sub span,
.btn span {
animation-duration: var(--t);
animation-iteration-count: infinite;
animation-timing-function: ease;
}
.s-base {
animation-name: s-base;
}
.s-sleep {
opacity: 0;
animation-name: s-sleep;
}
.s-back {
opacity: 0;
color: var(--rust);
animation-name: s-back;
}
@keyframes s-base {
0%,
16% {
opacity: 1;
}
16.5%,
96.5% {
opacity: 0;
}
97.5%,
100% {
opacity: 1;
}
}
@keyframes s-sleep {
0%,
16.5% {
opacity: 0;
}
17.5%,
70% {
opacity: 1;
}
70.5%,
100% {
opacity: 0;
}
}
@keyframes s-back {
0%,
70.5% {
opacity: 0;
}
71.5%,
96% {
opacity: 1;
}
96.5%,
100% {
opacity: 0;
}
}
.btn {
display: grid;
justify-items: center;
height: 30px;
padding: 0 10px;
font: inherit;
font-size: 12px;
font-weight: 600;
color: var(--slate);
background: var(--paper);
border: 1px solid var(--oat);
border-radius: calc(8px * var(--round));
animation: press var(--t) infinite;
}
.btn span {
grid-area: 1 / 1;
align-self: center;
white-space: nowrap;
}
.b-live {
animation-name: b-live;
}
.b-off {
opacity: 0;
color: var(--_muted);
animation-name: b-off;
}
@keyframes b-live {
0%,
16% {
opacity: 1;
}
16.5%,
70.5% {
opacity: 0;
}
71.5%,
100% {
opacity: 1;
}
}
@keyframes b-off {
0%,
16.5% {
opacity: 0;
}
17.5%,
70% {
opacity: 1;
}
70.5%,
100% {
opacity: 0;
}
}
/* 80ms down, 120ms up — the family's one press; the label changes at the bottom of the dip. */
@keyframes press {
0%,
15% {
transform: scale(1);
animation-timing-function: var(--ease-out);
}
16% {
transform: scale(0.97);
animation-timing-function: var(--ease-out);
}
17.5%,
100% {
transform: scale(1);
}
}
@media (prefers-reduced-motion: reduce) {
/* The press dip and the ring's growth go; waking gets a held halo
that fades instead. The clock still drains — it is the content —
and every timeline stretches by the same 1.5. */
.btn {
animation: none;
}
.ring {
animation-name: halo;
}
@keyframes halo {
0%,
1% {
opacity: 0;
transform: scale(2);
}
3% {
opacity: 0.3;
transform: scale(2);
}
10%,
70% {
opacity: 0;
transform: scale(2);
}
72% {
opacity: 0.3;
transform: scale(2);
}
80%,
100% {
opacity: 0;
transform: scale(2);
}
}
.dot,
.ring,
.clock,
.clock .arc,
.name,
.sub span,
.btn span {
animation-duration: calc(var(--t) * 1.5);
}
}
</style>
</head>
<body>
<div
class="card"
role="img"
aria-label="A firing alert is snoozed for an hour: it stays in place but dims, and its dot becomes a small clock that drains from twelve o'clock; when the clock empties the alert wakes in place with one pulse, still firing, and the Snooze button is live again"
>
<div class="head"><span>Alerts</span><span>On call · you</span></div>
<div class="row">
<span class="sig">
<span class="ring"></span>
<span class="dot"></span>
<svg class="clock" viewBox="0 0 18 18" aria-hidden="true">
<circle class="track" cx="9" cy="9" r="6" />
<circle class="arc" cx="9" cy="9" r="6" />
</svg>
</span>
<span class="txt">
<span class="name">Checkout latency</span>
<span class="sub stack">
<span class="s-base">p95 812ms · eu-west</span>
<span class="s-sleep">Back at 10:41</span>
<span class="s-back">Awake · still firing</span>
</span>
</span>
<span class="btn" aria-hidden="true">
<span class="b-live">Snooze 1h</span>
<span class="b-off">Snoozed</span>
</span>
</div>
</div>
</body>
</html>
The variant family
Same idea, one axis moved. Compare them side by side before you commit.