Alert triage — dedupe by fingerprint
Variant: Dedupe
A webhook failure arrives, takes a row with one 6px, 200ms ease-out entrance and a single ring — and then happens four more times, and none of them is allowed to spend attention again. Each repeat is a drop that falls from the feed edge straight into the count on ease-in-out and is gone; the count rolls one place in 160ms of ease-out on the frame it lands, in tabular figures so the chip never changes width. No second ring, no re-sort, no new row: a repeat is information, not news. The burst is deliberately uneven — three in quick succession, then a straggler — because that is what flapping actually looks like. Then a different fingerprint arrives and gets everything the first one got, entrance and ring, in a new row below; rows keep first-seen order so nothing already on screen moves to make way. Reach for it on alert feeds, error trackers and notification centres, where the difference between five problems and one problem five times is the whole job.
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 — repeats are counted, not announced</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. One alert is born at 6%, four repeats
land in a burst at 22/30/34 and a straggler at 52, and a different
alert is born at 62%. */
--cycle: 8s;
--t: calc(var(--cycle) / var(--speed));
--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
--ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
--_row: 44px;
--_digit: 16px;
--_muted: color-mix(in srgb, var(--slate) 54%, transparent);
--_chip: 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;
gap: 10px;
padding: 10px 14px;
font-size: 11.5px;
color: var(--_muted);
border-bottom: 1px solid var(--oat);
}
.head b {
font-weight: 600;
color: var(--slate);
}
.list {
position: relative;
height: calc(var(--_row) * 2 + 12px);
padding: 6px 0;
}
.empty {
position: absolute;
inset: 0;
display: grid;
place-items: center;
font-size: 12px;
color: var(--_muted);
animation: empty var(--t) ease infinite;
}
@keyframes empty {
0%,
6% {
opacity: 1;
}
7%,
96% {
opacity: 0;
}
98%,
100% {
opacity: 1;
}
}
.row {
display: grid;
grid-template-columns: 22px 1fr 36px;
align-items: center;
gap: 10px;
height: var(--_row);
padding: 0 14px;
opacity: 0;
animation-duration: var(--t);
animation-iteration-count: infinite;
}
.a {
animation-name: enter-a;
}
.b {
animation-name: enter-b;
}
/* A new fingerprint enters: 6px and 200ms of ease-out, the only
arrival in the piece that moves anything. */
@keyframes enter-a {
0%,
6.5% {
opacity: 0;
transform: translateY(-6px);
animation-timing-function: var(--ease-out);
}
9%,
92% {
opacity: 1;
transform: translateY(0);
animation-timing-function: ease;
}
95%,
100% {
opacity: 0;
transform: translateY(0);
}
}
@keyframes enter-b {
0%,
62% {
opacity: 0;
transform: translateY(-6px);
animation-timing-function: var(--ease-out);
}
64.5%,
92% {
opacity: 1;
transform: translateY(0);
animation-timing-function: ease;
}
95%,
100% {
opacity: 0;
transform: translateY(0);
}
}
.sig {
display: grid;
place-items: center;
width: 22px;
height: 22px;
}
.dot,
.ring {
grid-area: 1 / 1;
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--rust);
}
.ring {
opacity: 0;
animation-duration: var(--t);
animation-iteration-count: infinite;
}
.a .ring {
animation-name: ring-a;
}
.b .ring {
animation-name: ring-b;
}
/* One ring per fingerprint, at birth, and never again. The four
repeats that follow are information, not news, so none of them is
allowed to spend the page's attention a second time. */
@keyframes ring-a {
0%,
7% {
opacity: 0;
transform: scale(1);
}
7.1% {
opacity: 0.55;
transform: scale(1);
animation-timing-function: var(--ease-out);
}
16%,
100% {
opacity: 0;
transform: scale(2.6);
}
}
@keyframes ring-b {
0%,
63% {
opacity: 0;
transform: scale(1);
}
63.1% {
opacity: 0.55;
transform: scale(1);
animation-timing-function: var(--ease-out);
}
72%,
100% {
opacity: 0;
transform: scale(2.6);
}
}
.txt {
display: grid;
gap: 2px;
min-width: 0;
}
.name {
font-size: 13px;
font-weight: 600;
letter-spacing: -0.01em;
}
.sub {
font-size: 11px;
color: var(--_muted);
}
.name,
.sub {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.count {
display: flex;
justify-content: center;
align-items: center;
gap: 1px;
height: 22px;
border-radius: 999px;
background: var(--_chip);
color: var(--rust);
font-size: 11.5px;
font-weight: 600;
font-variant-numeric: tabular-nums;
}
.win {
height: var(--_digit);
overflow: hidden;
}
.digits {
display: grid;
line-height: var(--_digit);
animation: roll var(--t) infinite;
}
/* Each repeat rolls the count one place in 160ms of ease-out on the
frame its event lands. Tabular figures, so the chip never changes
width and the row never re-lays-out for a number that went up. */
@keyframes roll {
0%,
24.5% {
transform: translateY(0);
animation-timing-function: var(--ease-out);
}
26.5%,
32.5% {
transform: translateY(calc(var(--_digit) * -1));
animation-timing-function: var(--ease-out);
}
34.5%,
36.5% {
transform: translateY(calc(var(--_digit) * -2));
animation-timing-function: var(--ease-out);
}
38.5%,
54.5% {
transform: translateY(calc(var(--_digit) * -3));
animation-timing-function: var(--ease-out);
}
56.5%,
100% {
transform: translateY(calc(var(--_digit) * -4));
}
}
/* The repeat itself, drawn as a drop that falls from the feed edge
straight into the count and is gone: it never touches the dot, the
name or the order. Ease-in-out, because it is travelling from a
known place to a known place. */
.drop {
position: absolute;
top: -9.5px;
right: 28.5px;
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--rust);
opacity: 0;
animation: drop var(--t) infinite;
}
@keyframes drop {
0%,
22%,
30%,
34%,
52% {
opacity: 0;
transform: translateY(0) scale(1);
animation-timing-function: var(--ease-in-out);
}
22.4%,
30.4%,
34.4%,
52.4% {
opacity: 1;
transform: translateY(5px) scale(1);
animation-timing-function: var(--ease-in-out);
}
24.3%,
32.3%,
36.3%,
54.3% {
opacity: 1;
transform: translateY(22px) scale(1);
animation-timing-function: ease;
}
24.8%,
32.8%,
36.8%,
54.8% {
opacity: 0;
transform: translateY(30px) scale(0.6);
animation-timing-function: steps(1, end);
}
24.9%,
32.9%,
36.9%,
54.9%,
100% {
opacity: 0;
transform: translateY(0) scale(1);
}
}
@media (prefers-reduced-motion: reduce) {
/* No drop, no entrance travel, no ring growth: rows fade in where
they will live, births get a held halo instead of a ring, and the
count still turns over on every repeat — a crossfade in place
rather than a roll — because the number is the message. Every clock stretches by the same 1.5. */
.drop {
animation: none;
opacity: 0;
}
.a {
animation-name: fade-a;
}
.b {
animation-name: fade-b;
}
@keyframes fade-a {
0%,
6.5% {
opacity: 0;
}
9%,
92% {
opacity: 1;
}
95%,
100% {
opacity: 0;
}
}
@keyframes fade-b {
0%,
62% {
opacity: 0;
}
64.5%,
92% {
opacity: 1;
}
95%,
100% {
opacity: 0;
}
}
.a .ring {
animation-name: halo-a;
}
.b .ring {
animation-name: halo-b;
}
@keyframes halo-a {
0%,
7% {
opacity: 0;
transform: scale(2);
}
9% {
opacity: 0.3;
transform: scale(2);
}
16%,
100% {
opacity: 0;
transform: scale(2);
}
}
@keyframes halo-b {
0%,
63% {
opacity: 0;
transform: scale(2);
}
65% {
opacity: 0.3;
transform: scale(2);
}
72%,
100% {
opacity: 0;
transform: scale(2);
}
}
.digits {
animation: none;
}
.digits span {
grid-area: 1 / 1;
opacity: 0;
animation: calc(var(--t) * 1.5) ease infinite;
}
.digits span:nth-child(1) {
animation-name: n1;
}
.digits span:nth-child(2) {
animation-name: n2;
}
.digits span:nth-child(3) {
animation-name: n3;
}
.digits span:nth-child(4) {
animation-name: n4;
}
.digits span:nth-child(5) {
animation-name: n5;
}
@keyframes n1 {
0% {
opacity: 1;
}
24.5% {
opacity: 1;
}
25.0%,
100% {
opacity: 0;
}
}
@keyframes n2 {
0%,
25% {
opacity: 0;
}
26%,
32.5% {
opacity: 1;
}
33.0%,
100% {
opacity: 0;
}
}
@keyframes n3 {
0%,
33% {
opacity: 0;
}
34%,
36.5% {
opacity: 1;
}
37.0%,
100% {
opacity: 0;
}
}
@keyframes n4 {
0%,
37% {
opacity: 0;
}
38%,
54.5% {
opacity: 1;
}
55.0%,
100% {
opacity: 0;
}
}
@keyframes n5 {
0%,
55% {
opacity: 0;
}
56%,
100% {
opacity: 1;
}
}
.empty,
.row,
.ring {
animation-duration: calc(var(--t) * 1.5);
}
}
</style>
</head>
<body>
<div
class="card"
role="img"
aria-label="A webhook failure alert appears once with a single pulse; four more identical events drop into its count, which rolls from 1 to 5 without the row moving or pulsing again; a different disk alert then appears as its own row below"
>
<div class="head"><b>Alerts</b><span>Grouped by fingerprint</span></div>
<div class="list">
<span class="empty">No open alerts</span>
<span class="drop"></span>
<div class="row a">
<span class="sig"><span class="ring"></span><span class="dot"></span></span>
<span class="txt">
<span class="name">Webhook failures</span>
<span class="sub">stripe-hooks · HTTP 502</span>
</span>
<span class="count"
>×<span class="win"
><span class="digits"
><span>1</span><span>2</span><span>3</span><span>4</span><span>5</span></span
></span
></span
>
</div>
<div class="row b">
<span class="sig"><span class="ring"></span><span class="dot"></span></span>
<span class="txt">
<span class="name">Disk almost full</span>
<span class="sub">db-2 · 91% used</span>
</span>
<span class="count">×1</span>
</div>
</div>
</div>
</body>
</html>
The variant family
Same idea, one axis moved. Compare them side by side before you commit.