Field record — recorded before removal
Variant: Recorded before removal
A trench section, two deposits over natural ground, dug the only way excavation allows: top down, and never before it is recorded. Each layer has its outline traced in clay, its context number stamped the instant the loop closes, and only then lifts away — 7px up and out on an ease-out, because removal is an exit — leaving its outline behind as a muted, dashed record — with the boundary the two records share drawn only once, since two dash patterns laid over one curve print as a solid line, and solid belongs to the live pen. Live pen and record are two paths crossfading, since a dash pattern cannot be tweened and a snap from solid to dashed reads as a glitch. The order is the whole idea and the timing enforces it: there is a fixed gap between "traced" and "gone" that nothing can skip. Use it for destructive actions that snapshot first — archive-then-delete, a migration that writes its backup before it drops, an undo stack that is last in, first out. The reset at the end is opacity only, never a reversal: nothing is ever un-dug.
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>Field record — recorded before removal</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;
--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) 46%, transparent);
--_c1: color-mix(in srgb, var(--oat) 75%, var(--ivory));
--_c2: var(--oat);
--_c3: color-mix(in srgb, var(--oat), var(--slate) 14%);
/* How far a deposit travels as it is taken out. Zero under reduced
motion, so the same keyframes still run and only the lift is lost. */
--_lift: -7px;
/* Clock — 6.4s, two identical removals 2s apart. Each: a 1.15s trace
of the deposit's outline, a 192ms stamp of its number, then a 384ms
lift. The trace has to close before the lift may start; that gap is
the whole idea. */
--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);
}
* {
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);
}
.sheet {
width: min(290px, 86vw);
height: auto;
display: block;
}
.cut {
fill: none;
stroke: var(--oat);
stroke-width: 1.5;
}
.c1 {
fill: var(--_c1);
animation: dig-1 var(--t) infinite;
}
.c2 {
fill: var(--_c2);
animation: dig-2 var(--t) infinite;
}
.c3 {
fill: var(--_c3);
}
/* The live pen is clay; the record it leaves is slate and dashed. Two
paths crossfade rather than one restyled, because a dash pattern
cannot be tweened and a snap from solid to dashed reads as a glitch. */
.trace {
fill: none;
stroke: var(--clay-d);
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
stroke-dasharray: 100 200;
}
.trace-1 {
animation: trace-1 var(--t) infinite;
}
.trace-2 {
animation: trace-2 var(--t) infinite;
}
/* The second record leaves out the boundary it shares with the first:
two dash patterns laid over one curve in opposite directions print as
a solid line, and solid is reserved for the live pen. */
.ghost {
fill: none;
stroke: var(--_muted);
stroke-width: 1.25;
stroke-dasharray: 3 3;
}
.ghost-1 {
animation: ghost-1 var(--t) infinite;
}
.ghost-2 {
animation: ghost-2 var(--t) infinite;
}
.num {
fill: var(--slate);
font-family: inherit;
font-size: 11px;
font-weight: 600;
letter-spacing: 0.06em;
font-variant-numeric: tabular-nums;
}
.num-1 {
animation: num-1 var(--t) infinite;
}
.num-2 {
animation: num-2 var(--t) infinite;
}
.caption {
fill: var(--_muted);
font-family: inherit;
font-size: 11px;
font-weight: 600;
letter-spacing: 0.14em;
}
/* Each outline is traced with ease-in-out — the pen sets down at the
surface and lifts where it closed. Linear would be truer to a hand,
but this is a confirmation, and the slow arrival is what lets the eye
see the loop close before anything leaves. */
@keyframes trace-1 {
0%,
4% {
stroke-dashoffset: 103;
animation-timing-function: linear;
}
5% {
stroke-dashoffset: 100;
animation-timing-function: var(--ease-in-out);
}
23%,
26% {
stroke-dashoffset: 0;
opacity: 1;
animation-timing-function: var(--ease-out);
}
32%,
95% {
stroke-dashoffset: 0;
opacity: 0;
animation-timing-function: steps(1, end);
}
96%,
100% {
stroke-dashoffset: 103;
opacity: 1;
}
}
@keyframes trace-2 {
0%,
35% {
stroke-dashoffset: 103;
animation-timing-function: linear;
}
36% {
stroke-dashoffset: 100;
animation-timing-function: var(--ease-in-out);
}
54%,
57% {
stroke-dashoffset: 0;
opacity: 1;
animation-timing-function: var(--ease-out);
}
63%,
95% {
stroke-dashoffset: 0;
opacity: 0;
animation-timing-function: steps(1, end);
}
96%,
100% {
stroke-dashoffset: 103;
opacity: 1;
}
}
@keyframes ghost-1 {
0%,
26% {
opacity: 0;
animation-timing-function: var(--ease-out);
}
32%,
86% {
opacity: 1;
animation-timing-function: var(--ease-out);
}
92%,
100% {
opacity: 0;
}
}
@keyframes ghost-2 {
0%,
57% {
opacity: 0;
animation-timing-function: var(--ease-out);
}
63%,
86% {
opacity: 1;
animation-timing-function: var(--ease-out);
}
92%,
100% {
opacity: 0;
}
}
/* The number is stamped the instant the outline closes — before the
lift, never with it. A deposit that leaves before it has a name is
simply lost. */
@keyframes num-1 {
0%,
23% {
opacity: 0;
animation-timing-function: var(--ease-out);
}
26%,
86% {
opacity: 1;
animation-timing-function: var(--ease-out);
}
92%,
100% {
opacity: 0;
}
}
@keyframes num-2 {
0%,
54% {
opacity: 0;
animation-timing-function: var(--ease-out);
}
57%,
86% {
opacity: 1;
animation-timing-function: var(--ease-out);
}
92%,
100% {
opacity: 0;
}
}
/* Removal is an exit, so ease-out: it goes at once and settles away.
The return at the end is opacity only — deposits come back as a
reset, not as a reversal, because nothing is ever un-dug. */
@keyframes dig-1 {
0%,
26% {
opacity: 1;
transform: translateY(0);
animation-timing-function: var(--ease-out);
}
32%,
88% {
opacity: 0;
transform: translateY(var(--_lift));
animation-timing-function: steps(1, end);
}
89% {
opacity: 0;
transform: translateY(0);
animation-timing-function: var(--ease-out);
}
96%,
100% {
opacity: 1;
transform: translateY(0);
}
}
@keyframes dig-2 {
0%,
57% {
opacity: 1;
transform: translateY(0);
animation-timing-function: var(--ease-out);
}
63%,
88% {
opacity: 0;
transform: translateY(var(--_lift));
animation-timing-function: steps(1, end);
}
89% {
opacity: 0;
transform: translateY(0);
animation-timing-function: var(--ease-out);
}
96%,
100% {
opacity: 1;
transform: translateY(0);
}
}
@media (prefers-reduced-motion: reduce) {
/* The order survives — trace, number, removal — at 1.6x, with the
lift taken out so deposits fade where they lie. */
:root {
--_lift: 0px;
}
.c1,
.c2,
.trace,
.ghost,
.num {
animation-duration: calc(var(--t) * 1.6);
}
}
</style>
</head>
<body>
<svg
class="sheet"
viewBox="0 0 260 160"
role="img"
aria-label="A trench section with three soil layers. The top layer's outline is traced and numbered 101, and only then is the layer removed, leaving its dashed outline behind. The layer below is traced, numbered 102 and removed the same way, until only the natural ground remains under two recorded outlines"
>
<path class="c3" d="M 30 92 C 80 100, 120 84, 165 92 C 195 97, 215 96, 230 90 V 128 H 30 Z" />
<path
class="c2"
d="M 30 58 C 70 50, 110 66, 150 58 C 190 50, 210 52, 230 60 V 90 C 215 96, 195 97, 165 92 C 120 84, 80 100, 30 92 Z"
/>
<path class="c1" d="M 30 30 H 230 V 60 C 210 52, 190 50, 150 58 C 110 66, 70 50, 30 58 Z" />
<path class="cut" d="M 30 22 V 128 H 230 V 22" />
<path
class="ghost ghost-1"
d="M 30 30 H 230 V 60 C 210 52, 190 50, 150 58 C 110 66, 70 50, 30 58 Z"
/>
<path
class="ghost ghost-2"
d="M 230 60 V 90 C 215 96, 195 97, 165 92 C 120 84, 80 100, 30 92 V 58"
/>
<path
class="trace trace-1"
pathLength="100"
d="M 30 30 H 230 V 60 C 210 52, 190 50, 150 58 C 110 66, 70 50, 30 58 Z"
/>
<path
class="trace trace-2"
pathLength="100"
d="M 30 58 C 70 50, 110 66, 150 58 C 190 50, 210 52, 230 60 V 90 C 215 96, 195 97, 165 92 C 120 84, 80 100, 30 92 Z"
/>
<text class="num num-1" x="40" y="48">101</text>
<text class="num num-2" x="40" y="80">102</text>
<text class="caption" x="30" y="148">SECTION</text>
</svg>
</body>
</html>
The variant family
Same idea, one axis moved. Compare them side by side before you commit.