Audit — chain intact
Variant: Intact
A hash-chained ledger being walked from the top, and the baseline the rest of the family breaks. A read head sits on each record for 192ms while its hash is recomputed. Then the link to the record above draws downward in olive, from the record being pointed at to the record doing the pointing. The tick lands 64ms later on a 160ms ease-out, because a record is only trusted once its link has been proven. The head hops on in 128ms on ease-in-out: it is moving between two points on screen, not entering. All of it runs off four registered properties on one clock: records verified, links proven, head position, and the integer the footer prints. Every row works out its own state from those, so no record can tick ahead of the one above it. The pace is even, 544ms a record, because verification is a computation, not a performance. Reach for it on audit logs, signed histories, backup verification and anything append-only where "intact" has to be earned record by record.
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>Audit — chain intact</title>
<style>
/* One clock drives the whole walk: how many records are verified (--_c),
how many links are proven (--_l), where the read head sits (--_k), and
the integer the footer prints (--_n). Every row derives its own state
from these, so no row can run ahead of the record before it. */
@property --_c {
syntax: '<number>';
inherits: true;
initial-value: 0;
}
@property --_l {
syntax: '<number>';
inherits: true;
initial-value: 0;
}
@property --_k {
syntax: '<number>';
inherits: true;
initial-value: 0;
}
@property --_n {
syntax: '<integer>';
inherits: true;
initial-value: 0;
}
: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)
);
--_muted: color-mix(in srgb, var(--slate) 52%, transparent);
--_head: color-mix(in srgb, var(--clay) 13%, var(--paper));
--_clay-wash: color-mix(in srgb, var(--clay) 16%, var(--paper));
--_olive-wash: color-mix(in srgb, var(--olive) 20%, var(--paper));
/* Clock — 6.4s: 1% is 64ms. Each record gets 8.5% (544ms): 192ms of
the head sitting on it while the hash is recomputed, then the link,
then the tick, then a 128ms hop to the next. */
--cycle: 6.4s;
--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);
--_m: 1; /* motion multiplier: 0 under reduced motion */
}
* {
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, calc(100vw - 32px));
padding: 13px 14px 12px;
display: grid;
gap: 9px;
border-radius: calc(12px * var(--round));
background: var(--paper);
border: 1px solid var(--oat);
animation: card var(--t) linear infinite;
}
/* The reset hides in a dark window at the wrap. */
@keyframes card {
0% {
opacity: 0;
}
2.5% {
opacity: 1;
}
95.5% {
opacity: 1;
animation-timing-function: var(--ease-out);
}
100% {
opacity: 0;
}
}
.head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.k {
font-size: 11px;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--_muted);
white-space: nowrap;
}
.pill {
display: grid;
font-size: 11px;
font-weight: 600;
flex: none;
}
.pill span {
grid-area: 1 / 1;
padding: 2px 8px;
border-radius: 999px;
text-align: center;
white-space: nowrap;
}
.p-run {
background: var(--_clay-wash);
color: var(--clay-d);
animation: p-out var(--t) linear infinite;
}
.p-ok {
background: var(--_olive-wash);
color: var(--olive);
animation: p-in var(--t) linear infinite;
}
@keyframes p-out {
0%,
45.5% {
opacity: 1;
animation-timing-function: ease;
}
47.5%,
100% {
opacity: 0;
}
}
@keyframes p-in {
0%,
45.5% {
opacity: 0;
animation-timing-function: ease;
}
47.5%,
100% {
opacity: 1;
}
}
.rows {
position: relative;
list-style: none;
animation:
c var(--t) linear infinite,
l var(--t) linear infinite,
k var(--t) linear infinite,
n var(--t) linear infinite;
}
/* Verified count. The tick is the last thing to land on each record. */
@keyframes c {
0%,
8% {
--_c: 0;
animation-timing-function: var(--ease-out);
}
10.5%,
16.5% {
--_c: 1;
animation-timing-function: var(--ease-out);
}
19%,
25% {
--_c: 2;
animation-timing-function: var(--ease-out);
}
27.5%,
33.5% {
--_c: 3;
animation-timing-function: var(--ease-out);
}
36%,
42% {
--_c: 4;
animation-timing-function: var(--ease-out);
}
44.5%,
100% {
--_c: 5;
}
}
/* Links prove a record points at the one above it, so each draws 64ms
before its record's tick — the tick is earned by the link. */
@keyframes l {
0%,
15.5% {
--_l: 0;
animation-timing-function: var(--ease-out);
}
18%,
24% {
--_l: 1;
animation-timing-function: var(--ease-out);
}
26.5%,
32.5% {
--_l: 2;
animation-timing-function: var(--ease-out);
}
35%,
41% {
--_l: 3;
animation-timing-function: var(--ease-out);
}
43.5%,
100% {
--_l: 4;
}
}
/* The read head moves record to record on screen, so it eases both ways. */
@keyframes k {
0%,
10.5% {
--_k: 0;
animation-timing-function: var(--ease-in-out);
}
12.5%,
19% {
--_k: 1;
animation-timing-function: var(--ease-in-out);
}
21%,
27.5% {
--_k: 2;
animation-timing-function: var(--ease-in-out);
}
29.5%,
36% {
--_k: 3;
animation-timing-function: var(--ease-in-out);
}
38%,
100% {
--_k: 4;
}
}
@keyframes n {
0%,
8.4% {
--_n: 0;
}
8.5%,
16.9% {
--_n: 1;
}
17%,
25.4% {
--_n: 2;
}
25.5%,
33.9% {
--_n: 3;
}
34%,
42.4% {
--_n: 4;
}
42.5%,
100% {
--_n: 5;
}
}
.cursor {
position: absolute;
top: 0;
left: -7px;
right: -7px;
height: 26px;
border-radius: calc(6px * var(--round));
background: var(--_head);
box-shadow: inset 2px 0 0 var(--clay);
transform: translateY(calc(var(--_k) * 100%));
animation: cursor var(--t) linear infinite;
}
@keyframes cursor {
0%,
3% {
opacity: 0;
animation-timing-function: var(--ease-out);
}
5%,
45% {
opacity: 1;
animation-timing-function: var(--ease-out);
}
47.5%,
100% {
opacity: 0;
}
}
.row {
--_s: clamp(0, calc(var(--_c) - var(--_i)), 1);
--_ls: clamp(0, calc(var(--_l) - var(--_i) + 1), 1);
position: relative;
height: 26px;
display: grid;
grid-template-columns: 12px 40px minmax(0, 1fr) auto;
align-items: center;
gap: 8px;
font-size: 12.5px;
}
/* The chain: a link from the bottom of the mark above to the top of this
one. Grey until proven, then drawn downward — from the record being
pointed at, to the record doing the pointing. */
.row + .row::before,
.row + .row::after {
content: '';
position: absolute;
left: 5px;
top: -7px;
width: 2px;
height: 14px;
background: var(--oat);
}
.row + .row::after {
background: var(--olive);
transform-origin: top;
transform: scaleY(var(--_ls));
}
.mark {
position: relative;
width: 12px;
height: 12px;
border-radius: 50%;
border: 1.5px solid var(--oat);
}
.ok {
position: absolute;
inset: -1.5px;
border-radius: 50%;
background: var(--olive);
display: grid;
place-items: center;
opacity: var(--_s);
transform: scale(calc(1 - 0.14 * (1 - var(--_s)) * var(--_m)));
}
.ok svg {
width: 8px;
height: 8px;
fill: none;
stroke: var(--paper);
stroke-width: 1.8;
stroke-linecap: round;
stroke-linejoin: round;
}
.seq,
.desc,
.amt {
opacity: calc(0.55 + 0.45 * var(--_s));
white-space: nowrap;
}
.seq {
font-size: 11px;
font-weight: 700;
color: var(--_muted);
font-variant-numeric: tabular-nums;
}
.desc {
overflow: hidden;
text-overflow: ellipsis;
}
.amt {
font-weight: 500;
font-variant-numeric: tabular-nums;
text-align: right;
}
.foot {
border-top: 1px solid var(--oat);
padding-top: 8px;
font-size: 12px;
color: var(--_muted);
font-variant-numeric: tabular-nums;
counter-reset: n var(--_n);
animation: n var(--t) linear infinite;
}
.foot b {
font-weight: 600;
color: var(--slate);
}
.foot b::before {
content: counter(n);
}
@media (prefers-reduced-motion: reduce) {
:root {
--_m: 0;
}
/* One shared 1.6x clock keeps every part in phase. */
.card,
.card *,
.card *::before,
.card *::after {
animation-duration: calc(var(--t) * 1.6);
}
/* The order of the walk is the message, so it keeps every beat: the
head jumps between records instead of gliding, and links fade in
whole instead of drawing. */
.cursor {
transform: translateY(calc(round(var(--_k), 1) * 100%));
}
.row + .row::after {
transform: none;
opacity: var(--_ls);
}
}
</style>
</head>
<body>
<div
class="card"
role="img"
aria-label="A ledger audit walking a hash chain: a read head steps down five records, each link to the record above is proven and then the record is ticked, until the status reads chain intact, 5 of 5 hashes match"
>
<div class="head">
<span class="k">Ledger · Q3</span>
<span class="pill"><span class="p-run">Verifying</span><span class="p-ok">Chain intact</span></span>
</div>
<ol class="rows">
<li class="cursor" aria-hidden="true"></li>
<li class="row" style="--_i: 0">
<span class="mark"><span class="ok"><svg viewBox="0 0 8 8"><path d="M1.6 4.2 3.3 5.8 6.4 2.4" /></svg></span></span>
<span class="seq">#1041</span><span class="desc">Northwind Ltd</span><span class="amt">−1,240.00</span>
</li>
<li class="row" style="--_i: 1">
<span class="mark"><span class="ok"><svg viewBox="0 0 8 8"><path d="M1.6 4.2 3.3 5.8 6.4 2.4" /></svg></span></span>
<span class="seq">#1042</span><span class="desc">Payroll · Oct</span><span class="amt">−18,605.12</span>
</li>
<li class="row" style="--_i: 2">
<span class="mark"><span class="ok"><svg viewBox="0 0 8 8"><path d="M1.6 4.2 3.3 5.8 6.4 2.4" /></svg></span></span>
<span class="seq">#1043</span><span class="desc">Card payout</span><span class="amt">+6,410.50</span>
</li>
<li class="row" style="--_i: 3">
<span class="mark"><span class="ok"><svg viewBox="0 0 8 8"><path d="M1.6 4.2 3.3 5.8 6.4 2.4" /></svg></span></span>
<span class="seq">#1044</span><span class="desc">Office lease</span><span class="amt">−4,200.00</span>
</li>
<li class="row" style="--_i: 4">
<span class="mark"><span class="ok"><svg viewBox="0 0 8 8"><path d="M1.6 4.2 3.3 5.8 6.4 2.4" /></svg></span></span>
<span class="seq">#1045</span><span class="desc">Refund #88</span><span class="amt">+312.40</span>
</li>
</ol>
<p class="foot"><b></b> of 5 hashes match · sha-256</p>
</div>
</body>
</html>
The variant family
Same idea, one axis moved. Compare them side by side before you commit.