Stroke gesture — trace the guide
Variant: Trace guide
A tracing exercise of the kind handwriting apps, onboarding flourishes and draw-to-verify checks use. The pen follows a dotted guide inside a soft lane. The ink is not laid where the pen is: its tip is the pen’s projection onto the guide, so a wobbly hand still leaves a clean stroke, and the ink only moves forward while the pen is inside the lane, which is 8 units either side with one unit of grace. On the crest of the last hump the pen overshoots. The ink stops, the label says “Back to the line” in rust, and a thin tether runs from the ink tip to the pen, fading in as the gap passes 7 units. It is an error that points to its own fix, showing exactly where to rejoin. When the pen comes back the ink picks up from where it stopped, never from where the pen wandered. The percentage is computed from the same samples as the ink tip, not the pen, so it stands still through the excursion; a counter that kept climbing off the line would reward the mistake. The finish is the one celebration in the family: the goal pops to 1.25× in 140ms on ease-out and settles in 220ms, and “Traced” comes up in olive. Under reduced motion the pen and tether go, the goal changes colour without the pop, and the ink, the stall and the label keep their timing. Reach for it for handwriting practice, signature guides and any “draw this shape” step.
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>Stroke gesture — trace the guide</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 — 6.4s (1% = 64ms). 3.5s of tracing with one excursion off the
line, the finish held 1.7s, then the ink clears in 240ms. */
--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);
--_ink: color-mix(in srgb, var(--slate) 80%, transparent);
--_muted: color-mix(in srgb, var(--slate) 45%, transparent);
--_lane: color-mix(in oklch, var(--oat) 70%, var(--paper));
}
@property --_p {
syntax: '<integer>';
inherits: false;
initial-value: 0;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
min-height: 100vh;
display: grid;
place-items: center;
padding: clamp(10px, 3vw, 28px);
background: var(--ivory);
font-family:
system-ui,
-apple-system,
'Segoe UI',
Roboto,
sans-serif;
}
.card {
width: min(380px, 92vw);
border: 1px solid var(--oat);
border-radius: calc(14px * var(--round));
background: var(--paper);
}
.card svg {
display: block;
width: 100%;
height: auto;
}
.lane {
fill: none;
stroke: var(--_lane);
stroke-width: 16;
stroke-linecap: round;
stroke-linejoin: round;
}
.guide {
fill: none;
stroke: var(--_muted);
stroke-width: 1.6;
stroke-linecap: round;
stroke-dasharray: 0 5;
}
.start {
fill: var(--clay);
}
.goal {
stroke-width: 1.6;
transform-box: fill-box;
transform-origin: center;
animation: goal var(--t) infinite;
}
/* Ink is laid on the guide, not under the pen: its tip is the pen's
projection onto the line, and it only advances while the pen is inside
the lane. A wobbly hand still leaves a clean stroke; a hand that leaves
the lane leaves the ink where it was. */
.ink {
fill: none;
stroke: var(--clay);
stroke-width: 4;
stroke-linecap: round;
stroke-linejoin: round;
stroke-dasharray: 100 200;
stroke-dashoffset: 102;
animation: ink var(--t) infinite linear;
}
/* The tether runs from the ink tip to the pen. It is invisible while the
pen is on the line and grows with the distance, so being off track is
shown as a pull back to the exact place to resume. */
.tether {
fill: none;
stroke: var(--rust);
stroke-width: 1.2;
stroke-linecap: butt;
opacity: 0;
animation: tether var(--t) infinite linear;
}
.pen {
opacity: 0;
animation: pen var(--t) infinite linear;
}
.pen circle {
fill: var(--slate);
animation: pen-fill var(--t) infinite;
}
.caption {
display: flex;
justify-content: space-between;
align-items: baseline;
padding: 0 16px 14px;
font-size: 12.5px;
font-weight: 500;
color: var(--_ink);
}
.labels {
display: grid;
}
.labels span {
grid-area: 1 / 1;
opacity: 0;
}
.l-trace {
animation: l-trace var(--t) infinite;
}
.l-off {
color: var(--rust);
animation: l-off var(--t) infinite;
}
.l-done {
color: var(--olive);
animation: l-done var(--t) infinite;
}
/* Progress is the ink, not the pen: the number is derived from the same
samples as the ink tip and stands still while the pen is off the line. */
.pct {
font-variant-numeric: tabular-nums;
counter-reset: p var(--_p);
animation: pct var(--t) infinite linear;
}
.pct::after {
content: counter(p) '%';
}
@keyframes ink {
0% {
stroke-dashoffset: 102;
opacity: 1;
}
6.56% {
stroke-dashoffset: 102;
opacity: 1;
}
7.56% {
stroke-dashoffset: 97.4;
opacity: 1;
}
8.56% {
stroke-dashoffset: 95.34;
opacity: 1;
}
9.56% {
stroke-dashoffset: 93.01;
opacity: 1;
}
10.56% {
stroke-dashoffset: 90.67;
opacity: 1;
}
11.56% {
stroke-dashoffset: 88.34;
opacity: 1;
}
12.56% {
stroke-dashoffset: 86.01;
opacity: 1;
}
13.56% {
stroke-dashoffset: 83.68;
opacity: 1;
}
14.56% {
stroke-dashoffset: 81.35;
opacity: 1;
}
15.56% {
stroke-dashoffset: 79.02;
opacity: 1;
}
16.56% {
stroke-dashoffset: 76.69;
opacity: 1;
}
17.56% {
stroke-dashoffset: 74.35;
opacity: 1;
}
18.56% {
stroke-dashoffset: 72.02;
opacity: 1;
}
19.56% {
stroke-dashoffset: 69.69;
opacity: 1;
}
20.56% {
stroke-dashoffset: 67.36;
opacity: 1;
}
21.56% {
stroke-dashoffset: 65.03;
opacity: 1;
}
22.56% {
stroke-dashoffset: 62.7;
opacity: 1;
}
23.56% {
stroke-dashoffset: 60.37;
opacity: 1;
}
24.56% {
stroke-dashoffset: 58.03;
opacity: 1;
}
25.56% {
stroke-dashoffset: 55.7;
opacity: 1;
}
26.56% {
stroke-dashoffset: 53.37;
opacity: 1;
}
27.56% {
stroke-dashoffset: 51.04;
opacity: 1;
}
28.56% {
stroke-dashoffset: 48.71;
opacity: 1;
}
29.56% {
stroke-dashoffset: 46.38;
opacity: 1;
}
30.56% {
stroke-dashoffset: 44.05;
opacity: 1;
}
31.56% {
stroke-dashoffset: 41.71;
opacity: 1;
}
32.56% {
stroke-dashoffset: 39.38;
opacity: 1;
}
33.56% {
stroke-dashoffset: 37.05;
opacity: 1;
}
34.56% {
stroke-dashoffset: 34.72;
opacity: 1;
}
35.56% {
stroke-dashoffset: 32.39;
opacity: 1;
}
36.56% {
stroke-dashoffset: 30.06;
opacity: 1;
}
37.56% {
stroke-dashoffset: 27.73;
opacity: 1;
}
38.56% {
stroke-dashoffset: 25.65;
opacity: 1;
}
39.56% {
stroke-dashoffset: 23.96;
opacity: 1;
}
40.56% {
stroke-dashoffset: 22.66;
opacity: 1;
}
41.56% {
stroke-dashoffset: 22.66;
opacity: 1;
}
42.56% {
stroke-dashoffset: 22.66;
opacity: 1;
}
43.56% {
stroke-dashoffset: 22.66;
opacity: 1;
}
44.56% {
stroke-dashoffset: 22.66;
opacity: 1;
}
45.56% {
stroke-dashoffset: 22.66;
opacity: 1;
}
46.56% {
stroke-dashoffset: 22.66;
opacity: 1;
}
47.56% {
stroke-dashoffset: 22.66;
opacity: 1;
}
48.56% {
stroke-dashoffset: 21.09;
opacity: 1;
}
49.56% {
stroke-dashoffset: 20.91;
opacity: 1;
}
50.56% {
stroke-dashoffset: 20.16;
opacity: 1;
}
51.56% {
stroke-dashoffset: 18.83;
opacity: 1;
}
52.56% {
stroke-dashoffset: 16.95;
opacity: 1;
}
53.56% {
stroke-dashoffset: 14.92;
opacity: 1;
}
54.56% {
stroke-dashoffset: 12.9;
opacity: 1;
}
55.56% {
stroke-dashoffset: 10.88;
opacity: 1;
}
56.56% {
stroke-dashoffset: 8.85;
opacity: 1;
}
57.56% {
stroke-dashoffset: 6.83;
opacity: 1;
}
58.56% {
stroke-dashoffset: 4.81;
opacity: 1;
}
59.56% {
stroke-dashoffset: 2.87;
opacity: 1;
}
60.56% {
stroke-dashoffset: 1.4;
opacity: 1;
}
60.94% {
stroke-dashoffset: 0;
opacity: 1;
}
87.5% {
stroke-dashoffset: 0;
opacity: 1;
animation-timing-function: var(--ease-out);
}
91.25% {
stroke-dashoffset: 0;
opacity: 0;
}
91.27% {
stroke-dashoffset: 102;
opacity: 0;
}
100% {
stroke-dashoffset: 102;
opacity: 1;
}
}
@keyframes tether {
0% {
opacity: 0;
transform: translate(36px, 118px) rotate(0deg) scale(0, 1);
}
6.56% {
opacity: 0;
transform: translate(36px, 118px) rotate(0deg) scale(0, 1);
}
36.56% {
opacity: 0;
transform: translate(162.9px, 114.5px) rotate(969.2deg) scale(1.2, 1);
}
37.56% {
opacity: 0;
transform: translate(170.8px, 110.6px) rotate(960.2deg) scale(0.9, 1);
}
38.56% {
opacity: 0;
transform: translate(177.5px, 106.4px) rotate(956.4deg) scale(0.6, 1);
}
39.56% {
opacity: 0;
transform: translate(182.9px, 102.8px) rotate(955.9deg) scale(2.6, 1);
}
40.56% {
opacity: 0;
transform: translate(187px, 100.1px) rotate(957deg) scale(6.8, 1);
}
41.56% {
opacity: 0.79;
transform: translate(187px, 100.1px) rotate(976.2deg) scale(11.7, 1);
}
42.56% {
opacity: 1;
transform: translate(187px, 100.1px) rotate(981.9deg) scale(17.3, 1);
}
43.56% {
opacity: 1;
transform: translate(187px, 100.1px) rotate(982.7deg) scale(23.1, 1);
}
44.56% {
opacity: 1;
transform: translate(187px, 100.1px) rotate(982.8deg) scale(26.6, 1);
}
45.56% {
opacity: 1;
transform: translate(187px, 100.1px) rotate(982.9deg) scale(25.2, 1);
}
46.56% {
opacity: 1;
transform: translate(187px, 100.1px) rotate(984.4deg) scale(20.6, 1);
}
47.56% {
opacity: 1;
transform: translate(187px, 100.1px) rotate(987.4deg) scale(15.6, 1);
}
48.56% {
opacity: 0.33;
transform: translate(192.1px, 97px) rotate(960.8deg) scale(9, 1);
}
49.56% {
opacity: 0;
transform: translate(192.7px, 96.6px) rotate(961.4deg) scale(3.9, 1);
}
50.56% {
opacity: 0;
transform: translate(195.3px, 95.3px) rotate(964.3deg) scale(0.2, 1);
}
51.56% {
opacity: 0;
transform: translate(199.9px, 93.4px) rotate(791.9deg) scale(0.7, 1);
}
52.56% {
opacity: 0;
transform: translate(206.9px, 92px) rotate(807deg) scale(0.3, 1);
}
53.56% {
opacity: 0;
transform: translate(214.6px, 92.9px) rotate(825.4deg) scale(0.7, 1);
}
54.56% {
opacity: 0;
transform: translate(221.6px, 95.9px) rotate(840.3deg) scale(1.9, 1);
}
60.95% {
opacity: 0;
transform: translate(264px, 118px) rotate(0deg) scale(0, 1);
}
100% {
opacity: 0;
transform: translate(36px, 118px) rotate(0deg) scale(0, 1);
}
}
@keyframes pen {
0% {
opacity: 0;
transform: translate(36px, 118px) scale(1.3);
}
4.06% {
opacity: 0;
transform: translate(36px, 118px) scale(1.3);
animation-timing-function: var(--ease-out);
}
6.56% {
opacity: 1;
transform: translate(36px, 118px) scale(1);
}
7.56% {
opacity: 1;
transform: translate(45.9px, 118.3px) scale(1);
}
8.56% {
opacity: 1;
transform: translate(53.7px, 118.4px) scale(1);
}
9.56% {
opacity: 1;
transform: translate(62.6px, 117.8px) scale(1);
}
10.56% {
opacity: 1;
transform: translate(71.3px, 116.2px) scale(1);
}
11.56% {
opacity: 1;
transform: translate(80.1px, 115.1px) scale(1);
}
12.56% {
opacity: 1;
transform: translate(89.2px, 113.9px) scale(1);
}
13.56% {
opacity: 1;
transform: translate(97.5px, 110.2px) scale(1);
}
14.56% {
opacity: 1;
transform: translate(104.5px, 104.4px) scale(1);
}
15.56% {
opacity: 1;
transform: translate(111.2px, 98.5px) scale(1);
}
16.56% {
opacity: 1;
transform: translate(118px, 92.8px) scale(1);
}
17.56% {
opacity: 1;
transform: translate(123.5px, 86px) scale(1);
}
18.56% {
opacity: 1;
transform: translate(127px, 78px) scale(1);
}
19.56% {
opacity: 1;
transform: translate(130.1px, 70.1px) scale(1);
}
20.56% {
opacity: 1;
transform: translate(133.3px, 61.8px) scale(1);
}
21.56% {
opacity: 1;
transform: translate(133.8px, 52.5px) scale(1);
}
22.56% {
opacity: 1;
transform: translate(128.8px, 44.4px) scale(1);
}
23.56% {
opacity: 1;
transform: translate(119.6px, 42.1px) scale(1);
}
24.56% {
opacity: 1;
transform: translate(111.4px, 46.3px) scale(1);
}
25.56% {
opacity: 1;
transform: translate(106.9px, 54.3px) scale(1);
}
26.56% {
opacity: 1;
transform: translate(107px, 63.4px) scale(1);
}
27.56% {
opacity: 1;
transform: translate(109.4px, 71.9px) scale(1);
}
28.56% {
opacity: 1;
transform: translate(111.1px, 80.3px) scale(1);
}
29.56% {
opacity: 1;
transform: translate(112.8px, 89px) scale(1);
}
30.56% {
opacity: 1;
transform: translate(116.8px, 96.9px) scale(1);
}
31.56% {
opacity: 1;
transform: translate(122.6px, 103.6px) scale(1);
}
32.56% {
opacity: 1;
transform: translate(128.9px, 110px) scale(1);
}
33.56% {
opacity: 1;
transform: translate(136.1px, 115.7px) scale(1);
}
34.56% {
opacity: 1;
transform: translate(145.1px, 118.4px) scale(1);
}
35.56% {
opacity: 1;
transform: translate(154.3px, 116.7px) scale(1);
}
36.56% {
opacity: 1;
transform: translate(162.4px, 113.3px) scale(1);
}
37.56% {
opacity: 1;
transform: translate(170.4px, 109.8px) scale(1);
}
38.56% {
opacity: 1;
transform: translate(177.2px, 105.9px) scale(1);
}
39.56% {
opacity: 1;
transform: translate(181.4px, 100.7px) scale(1);
}
40.56% {
opacity: 1;
transform: translate(183.3px, 94.4px) scale(1);
}
41.56% {
opacity: 1;
transform: translate(184.2px, 88.7px) scale(1);
}
42.56% {
opacity: 1;
transform: translate(184.6px, 83px) scale(1);
}
43.56% {
opacity: 1;
transform: translate(184.1px, 77.2px) scale(1);
}
44.56% {
opacity: 1;
transform: translate(183.7px, 73.7px) scale(1);
}
45.56% {
opacity: 1;
transform: translate(183.9px, 75px) scale(1);
}
46.56% {
opacity: 1;
transform: translate(185px, 79.6px) scale(1);
}
47.56% {
opacity: 1;
transform: translate(186.3px, 84.5px) scale(1);
}
48.56% {
opacity: 1;
transform: translate(187.7px, 89.1px) scale(1);
}
49.56% {
opacity: 1;
transform: translate(190.9px, 93.2px) scale(1);
}
50.56% {
opacity: 1;
transform: translate(195.2px, 95.2px) scale(1);
}
51.56% {
opacity: 1;
transform: translate(200.1px, 94px) scale(1);
}
52.56% {
opacity: 1;
transform: translate(207px, 92.3px) scale(1);
}
53.56% {
opacity: 1;
transform: translate(214.4px, 93.5px) scale(1);
}
54.56% {
opacity: 1;
transform: translate(220.7px, 97.5px) scale(1);
}
55.56% {
opacity: 1;
transform: translate(226.9px, 101.7px) scale(1);
}
56.56% {
opacity: 1;
transform: translate(234px, 105.1px) scale(1);
}
57.56% {
opacity: 1;
transform: translate(240.6px, 109.1px) scale(1);
}
58.56% {
opacity: 1;
transform: translate(246.6px, 113.7px) scale(1);
}
59.56% {
opacity: 1;
transform: translate(253.2px, 116.8px) scale(1);
}
60.56% {
opacity: 1;
transform: translate(258.7px, 117.9px) scale(1);
}
60.94% {
opacity: 1;
transform: translate(264px, 118px) scale(1);
animation-timing-function: var(--ease-out);
}
63.75% {
opacity: 0;
transform: translate(268px, 108px) scale(1.15);
}
100% {
opacity: 0;
transform: translate(36px, 118px) scale(1.3);
}
}
@keyframes pen-fill {
0% {
fill: var(--slate);
}
41.56% {
fill: var(--slate);
animation-timing-function: ease;
}
43.06% {
fill: var(--rust);
}
48.56% {
fill: var(--rust);
animation-timing-function: ease;
}
50.06% {
fill: var(--slate);
}
100% {
fill: var(--slate);
}
}
@keyframes goal {
0% {
fill: var(--paper);
stroke: var(--_muted);
transform: scale(1);
}
60.94% {
fill: var(--paper);
stroke: var(--_muted);
transform: scale(1);
animation-timing-function: var(--ease-out);
}
63.13% {
fill: var(--olive);
stroke: var(--olive);
transform: scale(1.25);
animation-timing-function: var(--ease-in-out);
}
66.56% {
fill: var(--olive);
stroke: var(--olive);
transform: scale(1);
}
87.5% {
fill: var(--olive);
stroke: var(--olive);
transform: scale(1);
animation-timing-function: var(--ease-out);
}
91.25% {
fill: var(--paper);
stroke: var(--_muted);
transform: scale(1);
}
100% {
fill: var(--paper);
stroke: var(--_muted);
transform: scale(1);
}
}
@keyframes pct {
0% {
--_p: 0;
}
6.56% {
--_p: 0;
}
7.56% {
--_p: 2;
}
8.56% {
--_p: 4;
}
9.56% {
--_p: 6;
}
10.56% {
--_p: 9;
}
11.56% {
--_p: 11;
}
12.56% {
--_p: 13;
}
13.56% {
--_p: 16;
}
14.56% {
--_p: 18;
}
15.56% {
--_p: 20;
}
16.56% {
--_p: 23;
}
17.56% {
--_p: 25;
}
18.56% {
--_p: 27;
}
19.56% {
--_p: 30;
}
20.56% {
--_p: 32;
}
21.56% {
--_p: 34;
}
22.56% {
--_p: 37;
}
23.56% {
--_p: 39;
}
24.56% {
--_p: 41;
}
25.56% {
--_p: 44;
}
26.56% {
--_p: 46;
}
27.56% {
--_p: 48;
}
28.56% {
--_p: 51;
}
29.56% {
--_p: 53;
}
30.56% {
--_p: 55;
}
31.56% {
--_p: 58;
}
32.56% {
--_p: 60;
}
33.56% {
--_p: 62;
}
34.56% {
--_p: 65;
}
35.56% {
--_p: 67;
}
36.56% {
--_p: 69;
}
37.56% {
--_p: 72;
}
38.56% {
--_p: 74;
}
39.56% {
--_p: 76;
}
40.56% {
--_p: 77;
}
41.56% {
--_p: 77;
}
42.56% {
--_p: 77;
}
43.56% {
--_p: 77;
}
44.56% {
--_p: 77;
}
45.56% {
--_p: 77;
}
46.56% {
--_p: 77;
}
47.56% {
--_p: 77;
}
48.56% {
--_p: 78;
}
49.56% {
--_p: 79;
}
50.56% {
--_p: 79;
}
51.56% {
--_p: 81;
}
52.56% {
--_p: 83;
}
53.56% {
--_p: 85;
}
54.56% {
--_p: 87;
}
55.56% {
--_p: 89;
}
56.56% {
--_p: 91;
}
57.56% {
--_p: 93;
}
58.56% {
--_p: 95;
}
59.56% {
--_p: 97;
}
60.56% {
--_p: 98;
}
60.94% {
--_p: 100;
}
91.25% {
--_p: 100;
}
91.27% {
--_p: 0;
}
100% {
--_p: 0;
}
}
@keyframes l-trace {
0% {
opacity: 1;
}
41.56% {
opacity: 1;
animation-timing-function: ease;
}
42.97% {
opacity: 0;
}
49.97% {
opacity: 0;
animation-timing-function: ease;
}
52.16% {
opacity: 1;
}
60.94% {
opacity: 1;
animation-timing-function: ease;
}
62.34% {
opacity: 0;
}
91.25% {
opacity: 0;
animation-timing-function: ease;
}
93.44% {
opacity: 1;
}
100% {
opacity: 1;
}
}
@keyframes l-off {
0% {
opacity: 0;
}
42.97% {
opacity: 0;
animation-timing-function: ease;
}
45.16% {
opacity: 1;
}
48.56% {
opacity: 1;
animation-timing-function: ease;
}
49.97% {
opacity: 0;
}
100% {
opacity: 0;
}
}
@keyframes l-done {
0% {
opacity: 0;
}
62.34% {
opacity: 0;
animation-timing-function: ease;
}
64.53% {
opacity: 1;
}
87.5% {
opacity: 1;
animation-timing-function: var(--ease-out);
}
91.25% {
opacity: 0;
}
100% {
opacity: 0;
}
}
@media (prefers-reduced-motion: reduce) {
/* Same score, 1.6x slower. The pen and its tether are the travel, so
they go. The ink still advances, still stops for the excursion, and
the label still says why. */
:root {
--t: calc(var(--cycle) * 1.6 / var(--speed));
}
.pen,
.tether {
display: none;
}
.goal {
animation-name: goal-calm;
}
@keyframes goal-calm {
0% {
fill: var(--paper);
stroke: var(--_muted);
}
60.94% {
fill: var(--paper);
stroke: var(--_muted);
animation-timing-function: ease;
}
64.06% {
fill: var(--olive);
stroke: var(--olive);
}
87.5% {
fill: var(--olive);
stroke: var(--olive);
animation-timing-function: var(--ease-out);
}
91.25% {
fill: var(--paper);
stroke: var(--_muted);
}
100% {
fill: var(--paper);
stroke: var(--_muted);
}
}
}
</style>
</head>
<body>
<div class="card">
<svg
viewBox="0 0 300 150"
role="img"
aria-label="A dotted guide in a soft lane loops like a cursive letter. A pen traces it and clay ink is laid on the guide behind it; partway through the pen drifts out of the lane, the ink stops, and a thin rust tether pulls back to where the ink ended until the pen returns. The trace finishes, the end marker turns olive and the label reads Traced"
>
<path
class="lane"
d="M 36 118 C 70 122, 112 110, 128 80 C 141 55, 127 34, 113 46 C 99 58, 108 104, 140 115 C 168 125, 186 92, 208 92 C 230 92, 238 120, 264 118"
/>
<path
class="guide"
d="M 36 118 C 70 122, 112 110, 128 80 C 141 55, 127 34, 113 46 C 99 58, 108 104, 140 115 C 168 125, 186 92, 208 92 C 230 92, 238 120, 264 118"
/>
<circle class="start" cx="36" cy="118" r="3" />
<circle class="goal" cx="264" cy="118" r="4.5" />
<path
class="ink"
pathLength="100"
d="M 36 118 C 70 122, 112 110, 128 80 C 141 55, 127 34, 113 46 C 99 58, 108 104, 140 115 C 168 125, 186 92, 208 92 C 230 92, 238 120, 264 118"
/>
<line class="tether" x1="0" y1="0" x2="1" y2="0" />
<g class="pen">
<circle cx="0" cy="0" r="4.5" />
</g>
</svg>
<div class="caption">
<span class="labels">
<span class="l-trace">Trace the line</span>
<span class="l-off">Back to the line</span>
<span class="l-done">Traced</span>
</span>
<span class="pct"></span>
</div>
</div>
</body>
</html>
The variant family
Same idea, one axis moved. Compare them side by side before you commit.