Field record — plotted from two stakes
Variant: Plotted from two stakes
A find fixed by triangulation off a measured baseline. A tape pivots on stake A and its free end draws an arc; 560ms later stake B swings a second one. Arc and tape share a window and an ease-in-out, and because arc length is proportional to angle, the dashoffset and the rotation stay welded on every frame — the line is visibly being drawn by the tape. The find appears the instant the second arc crosses the first — 23.7% of the loop, measured, not the 28% a symmetric curve would suggest — and not when the swings finish: a point fixed by two measurements should exist the moment the second one agrees. Only then do solid tapes run out from the stakes to it, 112ms apart on an ease-out, and the readings land. Use it whenever a result is derived from two independent sources — a location resolved from two signals, a match confirmed by a second check, a value cross-referenced before it is shown — and let the derivation be seen before the answer is trusted. Reduced motion drops every swing, draw and scale and keeps only the order, each line fading in already whole.
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 — plotted from two stakes</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);
--_string: color-mix(in srgb, var(--slate) 30%, transparent);
/* Clock — 5.6s. Two 1.12s swings overlapping by 560ms, the find
plotted the moment the second arc crosses the first, then both
tapes run in to read the distances and the plot holds. */
--cycle: 5.6s;
--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(300px, 86vw);
height: auto;
display: block;
}
.baseline {
fill: none;
stroke: var(--slate);
stroke-width: 1.5;
}
.stake {
fill: var(--slate);
}
/* The swinging tape. Its length is the arc's radius, and it pivots on
the stake, so its free end is the pen. */
.arm {
fill: none;
stroke: var(--_muted);
stroke-width: 1;
stroke-dasharray: 2 2.5;
}
.arm-a {
transform-origin: 50px 120px;
animation: arm-a var(--t) infinite;
}
.arm-b {
transform-origin: 210px 120px;
animation: arm-b var(--t) infinite;
}
/* Arc and arm share a window and a curve. Arc length is proportional to
angle, so a dashoffset and a rotation on the same easing stay welded
on every frame — the line is visibly being drawn by the tape. */
.arc {
fill: none;
stroke: var(--_string);
stroke-width: 1.25;
stroke-dasharray: 100 100;
}
.arc-a {
animation: arc-a var(--t) infinite;
}
.arc-b {
animation: arc-b var(--t) infinite;
}
.work {
animation: work var(--t) infinite;
}
.find {
fill: var(--clay-d);
transform-box: fill-box;
transform-origin: center;
animation: find var(--t) infinite;
}
.find-ring {
fill: none;
stroke: var(--clay);
stroke-width: 1.5;
transform-box: fill-box;
transform-origin: center;
animation: find-ring var(--t) infinite;
}
.tape {
fill: none;
stroke: var(--slate);
stroke-width: 1.5;
stroke-linecap: round;
stroke-dasharray: 100 200;
}
.tape-a {
animation: tape-a var(--t) infinite;
}
.tape-b {
animation: tape-b var(--t) infinite;
}
.label {
fill: var(--_muted);
font-family: inherit;
font-size: 11px;
font-weight: 600;
letter-spacing: 0.1em;
font-variant-numeric: tabular-nums;
}
.reading {
fill: var(--slate);
}
.reading-a {
animation: reading-a var(--t) infinite;
}
.reading-b {
animation: reading-b var(--t) infinite;
}
/* A swing is something already on screen moving from A to B, so
ease-in-out: the tape is pulled taut, swept, and slowed to a stop
past the crossing. */
@keyframes arm-a {
0%,
5% {
opacity: 0;
transform: rotate(-55deg);
animation-timing-function: var(--ease-out);
}
8% {
opacity: 1;
transform: rotate(-55deg);
animation-timing-function: var(--ease-in-out);
}
28% {
opacity: 1;
transform: rotate(-18deg);
animation-timing-function: var(--ease-out);
}
31%,
100% {
opacity: 0;
transform: rotate(-18deg);
}
}
@keyframes arc-a {
0%,
8% {
stroke-dashoffset: 100;
animation-timing-function: var(--ease-in-out);
}
28%,
95% {
stroke-dashoffset: 0;
animation-timing-function: steps(1, end);
}
96%,
100% {
stroke-dashoffset: 100;
}
}
@keyframes arm-b {
0%,
15% {
opacity: 0;
transform: rotate(-150deg);
animation-timing-function: var(--ease-out);
}
18% {
opacity: 1;
transform: rotate(-150deg);
animation-timing-function: var(--ease-in-out);
}
38% {
opacity: 1;
transform: rotate(-108deg);
animation-timing-function: var(--ease-out);
}
41%,
100% {
opacity: 0;
transform: rotate(-108deg);
}
}
@keyframes arc-b {
0%,
18% {
stroke-dashoffset: 100;
animation-timing-function: var(--ease-in-out);
}
38%,
95% {
stroke-dashoffset: 0;
animation-timing-function: steps(1, end);
}
96%,
100% {
stroke-dashoffset: 100;
}
}
/* The find exists the instant the second arc crosses the first, not
when the swings finish. The crossing is 48% of B's sweep, but the
curve is asymmetric, so in time it is only 29% of the swing — 23.7%
of the loop, measured. A point fixed by two measurements should
appear when the second one agrees. */
@keyframes find {
0%,
23.5% {
opacity: 0;
transform: scale(0.6);
animation-timing-function: var(--ease-out);
}
27.5%,
95% {
opacity: 1;
transform: scale(1);
animation-timing-function: steps(1, end);
}
96%,
100% {
opacity: 0;
transform: scale(0.6);
}
}
@keyframes find-ring {
0%,
23.5% {
opacity: 0;
transform: scale(1);
}
24% {
opacity: 0.7;
transform: scale(1);
animation-timing-function: var(--ease-out);
}
37%,
100% {
opacity: 0;
transform: scale(2.4);
}
}
/* The readings come after the plot, never before: the tapes run out
from the stakes to a point that is already there, 112ms apart. */
@keyframes tape-a {
0%,
43% {
stroke-dashoffset: 103;
animation-timing-function: linear;
}
44% {
stroke-dashoffset: 100;
animation-timing-function: var(--ease-out);
}
56%,
95% {
stroke-dashoffset: 0;
animation-timing-function: steps(1, end);
}
96%,
100% {
stroke-dashoffset: 103;
}
}
@keyframes tape-b {
0%,
45% {
stroke-dashoffset: 103;
animation-timing-function: linear;
}
46% {
stroke-dashoffset: 100;
animation-timing-function: var(--ease-out);
}
58%,
95% {
stroke-dashoffset: 0;
animation-timing-function: steps(1, end);
}
96%,
100% {
stroke-dashoffset: 103;
}
}
@keyframes reading-a {
0%,
54% {
opacity: 0;
animation-timing-function: var(--ease-out);
}
60%,
95% {
opacity: 1;
animation-timing-function: steps(1, end);
}
96%,
100% {
opacity: 0;
}
}
@keyframes reading-b {
0%,
56% {
opacity: 0;
animation-timing-function: var(--ease-out);
}
62%,
95% {
opacity: 1;
animation-timing-function: steps(1, end);
}
96%,
100% {
opacity: 0;
}
}
@keyframes work {
0%,
86% {
opacity: 1;
animation-timing-function: var(--ease-out);
}
92%,
97% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@media (prefers-reduced-motion: reduce) {
/* Nothing swings, draws or grows. Every line is already whole and
simply fades in where it will rest, in the same order — arc A, arc
B, the find, the tapes, the readings — at 1.8x. */
.arm,
.find-ring {
animation: none;
opacity: 0;
}
.arc,
.tape {
stroke-dashoffset: 0;
}
.arc-a {
animation: rm-arc-a calc(var(--t) * 1.8) infinite;
}
.arc-b {
animation: rm-arc-b calc(var(--t) * 1.8) infinite;
}
.find {
animation: rm-find calc(var(--t) * 1.8) infinite;
}
.tape-a {
animation: rm-tape-a calc(var(--t) * 1.8) infinite;
}
.tape-b {
animation: rm-tape-b calc(var(--t) * 1.8) infinite;
}
.work,
.reading {
animation-duration: calc(var(--t) * 1.8);
}
@keyframes rm-arc-a {
0%,
5% {
opacity: 0;
animation-timing-function: var(--ease-out);
}
12%,
95% {
opacity: 1;
animation-timing-function: steps(1, end);
}
96%,
100% {
opacity: 0;
}
}
@keyframes rm-arc-b {
0%,
15% {
opacity: 0;
animation-timing-function: var(--ease-out);
}
22%,
95% {
opacity: 1;
animation-timing-function: steps(1, end);
}
96%,
100% {
opacity: 0;
}
}
@keyframes rm-find {
0%,
23.5% {
opacity: 0;
animation-timing-function: var(--ease-out);
}
27.5%,
95% {
opacity: 1;
animation-timing-function: steps(1, end);
}
96%,
100% {
opacity: 0;
}
}
@keyframes rm-tape-a {
0%,
44% {
opacity: 0;
animation-timing-function: var(--ease-out);
}
52%,
95% {
opacity: 1;
animation-timing-function: steps(1, end);
}
96%,
100% {
opacity: 0;
}
}
@keyframes rm-tape-b {
0%,
46% {
opacity: 0;
animation-timing-function: var(--ease-out);
}
54%,
95% {
opacity: 1;
animation-timing-function: steps(1, end);
}
96%,
100% {
opacity: 0;
}
}
}
</style>
</head>
<body>
<svg
class="sheet"
viewBox="0 0 260 150"
role="img"
aria-label="Two survey stakes on a measured baseline. A tape swings an arc from the first stake, then another from the second, and a find is plotted at the point where the arcs cross. Solid tapes then run from each stake to the find and their lengths appear"
>
<path class="baseline" d="M 50 120 H 210" />
<g class="work">
<path
class="arc arc-a"
pathLength="100"
d="M 120.68 19.06 A 123.22 123.22 0 0 1 167.19 81.92"
/>
<path
class="arc arc-b"
pathLength="100"
d="M 128.84 73.14 A 93.72 93.72 0 0 1 181.04 30.86"
/>
<path class="tape tape-a" pathLength="100" d="M 50 120 L 150 48" />
<path class="tape tape-b" pathLength="100" d="M 210 120 L 150 48" />
<circle class="find-ring" cx="150" cy="48" r="4.5" />
<circle class="find" cx="150" cy="48" r="4.5" />
<text class="label reading reading-a" x="94" y="80" text-anchor="end">12.3 m</text>
<text class="label reading reading-b" x="186" y="82">9.4 m</text>
</g>
<path class="arm arm-a" d="M 50 120 H 173.22" />
<path class="arm arm-b" d="M 210 120 H 303.72" />
<rect class="stake" x="47" y="117" width="6" height="6" />
<rect class="stake" x="207" y="117" width="6" height="6" />
<text class="label" x="50" y="140" text-anchor="middle">A</text>
<text class="label" x="130" y="140" text-anchor="middle">16.0 m</text>
<text class="label" x="210" y="140" text-anchor="middle">B</text>
</svg>
</body>
</html>
The variant family
Same idea, one axis moved. Compare them side by side before you commit.