Delineate — buffer and setback
Variant: Buffer & setback
A rule shown as geometry, then a proposal that breaks it and is corrected in front of you. The stream never animates, because it is the one thing on the sheet that is not a decision. The buffer is pushed out of it: both edges are the stream’s own line in dash-dot, the set’s mark for a limit, sliding 30 units out on ease-out so the zone reads as a property of the water rather than a shape laid over it. A footprint lands from 96% scale, dashed because it is still a proposal. A beat later the overlap is found and hatched in rust; it is found rather than placed, the way a check runs after a drop. The conflict stays put for 864ms, most of a second, because a validation only works if someone sees it. Then a 432ms ease-in-out move takes the footprint clear. The overlap is never animated: it is the footprint clipped by the band, so it shrinks to nothing as the footprint leaves the band, with the buffer line drawn over the proposal so the rule stays visible across it. Only once it is clear does the outline go solid. Reach for it in map editors, layout tools and schedulers, anywhere a placement can break a rule and the overlap itself is the clearest error message.
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>Delineate — buffer and setback</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)
);
/* Clock — 7.2s. The rule is drawn, the proposal breaks it and is
left breaking it for most of a second, then it moves until it
doesn't, in a 432ms correction. */
--cycle: 7.2s;
--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(340px, 90vw);
height: auto;
display: block;
}
/* The stream is the one thing on the sheet that is not a decision, so
it never animates. */
.stream {
fill: none;
stroke: var(--olive);
stroke-width: 2.5;
stroke-linecap: round;
stroke-linejoin: round;
}
.band {
fill: var(--olive);
opacity: 0;
animation: band-in var(--t) var(--ease-out) infinite;
}
/* The buffer is pushed out of the feature it protects — the edges are
the stream's own line, offset — so it reads as a property of the
water rather than a shape someone laid over it. Dash-dot, the set's
mark for a limit: a rule, not a thing you could walk up to. */
.edge {
fill: none;
stroke: var(--olive);
stroke-width: 1.25;
stroke-dasharray: 8 3 2 3;
stroke-linejoin: round;
opacity: 0;
animation: edge-up var(--t) var(--ease-out) infinite;
}
.edge.down {
animation-name: edge-down;
}
.rule-label {
fill: var(--olive);
font-size: 12px;
font-weight: 600;
letter-spacing: 0.04em;
opacity: 0;
animation: label-in var(--t) var(--ease-out) infinite;
}
.site {
animation: site-clear var(--t) var(--ease-out) infinite;
}
/* The footprint and its conflict ride one keyframe block, so the
overlap is never animated at all: it is the footprint clipped by the
band, and it shrinks because the footprint leaves the band. */
.mover {
animation: footprint-move var(--t) var(--ease-in-out) infinite;
}
.footprint {
transform-box: fill-box;
transform-origin: center;
opacity: 0;
animation: footprint-in var(--t) var(--ease-out) infinite;
}
.fp-fill {
fill: var(--paper);
}
.fp {
fill: none;
stroke: var(--slate);
stroke-width: 1.5;
}
/* Proposed while it conflicts; solid only once it clears. The family
rule: a line is dashed until it has been earned. */
.fp.proposed {
stroke-dasharray: 5 4;
animation: dashed-out var(--t) var(--ease-out) infinite;
}
.fp.committed {
opacity: 0;
animation: solid-in var(--t) var(--ease-out) infinite;
}
.hatch line {
stroke: var(--rust);
stroke-width: 1.4;
}
.footprint.conflict {
animation-name: conflict-in;
}
.fp-label {
fill: var(--slate);
font-size: 12px;
font-weight: 600;
letter-spacing: 0.08em;
opacity: 0.55;
}
@keyframes edge-up {
0%,
4% {
opacity: 0;
transform: translateY(0);
}
14%,
88% {
opacity: 1;
transform: translateY(-30px);
}
94%,
100% {
opacity: 0;
transform: translateY(-30px);
}
}
@keyframes edge-down {
0%,
4% {
opacity: 0;
transform: translateY(0);
}
14%,
88% {
opacity: 1;
transform: translateY(30px);
}
94%,
100% {
opacity: 0;
transform: translateY(30px);
}
}
@keyframes band-in {
0%,
9% {
opacity: 0;
}
16%,
88% {
opacity: 0.12;
}
94%,
100% {
opacity: 0;
}
}
@keyframes label-in {
0%,
14% {
opacity: 0;
}
18%,
88% {
opacity: 1;
}
94%,
100% {
opacity: 0;
}
}
@keyframes footprint-in {
0%,
22% {
opacity: 0;
transform: scale(0.96);
}
27%,
100% {
opacity: 1;
transform: scale(1);
}
}
/* The conflict is found, not placed: it arrives a beat after the
footprint lands, the way a check runs after a drop. */
@keyframes conflict-in {
0%,
29% {
opacity: 0;
transform: scale(1);
}
32%,
100% {
opacity: 1;
transform: scale(1);
}
}
@keyframes footprint-move {
0%,
44% {
transform: translateY(0);
}
50%,
100% {
transform: translateY(30px);
}
}
@keyframes dashed-out {
0%,
51% {
opacity: 1;
}
55%,
100% {
opacity: 0;
}
}
@keyframes solid-in {
0%,
51% {
opacity: 0;
}
55%,
100% {
opacity: 1;
}
}
@keyframes site-clear {
0%,
86% {
opacity: 1;
}
91%,
100% {
opacity: 0;
}
}
@media (prefers-reduced-motion: reduce) {
/* Nothing travels. The buffer appears in place, and the footprint
crossfades from its conflicting seat to its clear one — the hatch
leaves with it, which is still the whole explanation. */
.edge {
transform: translateY(-30px);
animation-name: edge-fade;
animation-duration: calc(var(--t) * 2);
}
.edge.down {
transform: translateY(30px);
animation-name: edge-fade;
}
.mover {
animation-name: footprint-swap;
animation-duration: calc(var(--t) * 2);
}
.band,
.rule-label,
.site,
.footprint,
.fp.proposed,
.fp.committed {
animation-duration: calc(var(--t) * 2);
}
@keyframes footprint-swap {
0%,
44% {
opacity: 1;
transform: translateY(0);
}
47% {
opacity: 0;
transform: translateY(0);
}
47.5% {
opacity: 0;
transform: translateY(30px);
}
50.5%,
100% {
opacity: 1;
transform: translateY(30px);
}
}
@keyframes edge-fade {
0%,
4% {
opacity: 0;
}
14%,
88% {
opacity: 1;
}
94%,
100% {
opacity: 0;
}
}
}
</style>
</head>
<body>
<svg
class="sheet"
viewBox="0 0 300 180"
role="img"
aria-label="A site plan with a stream running across it. A dash-dot buffer boundary pushes out from both banks of the stream to mark a 30 metre setback. A proposed building footprint, dashed, is placed overlapping the buffer, and the overlap is hatched as a conflict. The footprint slides down until it clears the buffer, the hatched overlap shrinks to nothing, and the footprint turns solid."
>
<defs>
<pattern
id="hatch"
class="hatch"
width="4"
height="4"
patternUnits="userSpaceOnUse"
patternTransform="rotate(45)"
>
<line x1="0" y1="0" x2="0" y2="4" />
</pattern>
<clipPath id="band-clip">
<path
d="M10 29.9 L20 32 L30 34.1 L40 36 L50 37.3 L60 38 L70 37.8 L80 36.9 L90 35.4 L100 33.4 L110 31.3 L120 29.2 L130 27.5 L140 26.4 L150 26 L160 26.4 L170 27.5 L180 29.2 L190 31.3 L200 33.4 L210 35.4 L220 36.9 L230 37.8 L240 38 L250 37.3 L260 36 L270 34.1 L280 32 L290 29.9 L290 89.9 L280 92 L270 94.1 L260 96 L250 97.3 L240 98 L230 97.8 L220 96.9 L210 95.4 L200 93.4 L190 91.3 L180 89.2 L170 87.5 L160 86.4 L150 86 L140 86.4 L130 87.5 L120 89.2 L110 91.3 L100 93.4 L90 95.4 L80 96.9 L70 97.8 L60 98 L50 97.3 L40 96 L30 94.1 L20 92 L10 89.9 Z"
/>
</clipPath>
</defs>
<g class="site">
<path
class="band"
d="M10 29.9 L20 32 L30 34.1 L40 36 L50 37.3 L60 38 L70 37.8 L80 36.9 L90 35.4 L100 33.4 L110 31.3 L120 29.2 L130 27.5 L140 26.4 L150 26 L160 26.4 L170 27.5 L180 29.2 L190 31.3 L200 33.4 L210 35.4 L220 36.9 L230 37.8 L240 38 L250 37.3 L260 36 L270 34.1 L280 32 L290 29.9 L290 89.9 L280 92 L270 94.1 L260 96 L250 97.3 L240 98 L230 97.8 L220 96.9 L210 95.4 L200 93.4 L190 91.3 L180 89.2 L170 87.5 L160 86.4 L150 86 L140 86.4 L130 87.5 L120 89.2 L110 91.3 L100 93.4 L90 95.4 L80 96.9 L70 97.8 L60 98 L50 97.3 L40 96 L30 94.1 L20 92 L10 89.9 Z"
/>
<g class="mover">
<g class="footprint">
<rect class="fp-fill" x="130" y="72" width="80" height="50" />
</g>
</g>
<!-- The clip sits outside the transform, so the band stays put while
the hatched copy rides the same move beneath it. -->
<g clip-path="url(#band-clip)">
<g class="mover">
<g class="footprint conflict">
<rect x="130" y="72" width="80" height="50" fill="url(#hatch)" />
</g>
</g>
</g>
<g class="mover">
<g class="footprint">
<rect class="fp proposed" x="130" y="72" width="80" height="50" />
<rect class="fp committed" x="130" y="72" width="80" height="50" />
<text class="fp-label" x="170" y="109" text-anchor="middle">UNIT B</text>
</g>
</g>
<!-- The rule is drawn over the proposal, so the line it breaks stays
visible across it. -->
<path
class="edge"
d="M10 59.9 L20 62 L30 64.1 L40 66 L50 67.3 L60 68 L70 67.8 L80 66.9 L90 65.4 L100 63.4 L110 61.3 L120 59.2 L130 57.5 L140 56.4 L150 56 L160 56.4 L170 57.5 L180 59.2 L190 61.3 L200 63.4 L210 65.4 L220 66.9 L230 67.8 L240 68 L250 67.3 L260 66 L270 64.1 L280 62 L290 59.9"
/>
<path
class="edge down"
d="M10 59.9 L20 62 L30 64.1 L40 66 L50 67.3 L60 68 L70 67.8 L80 66.9 L90 65.4 L100 63.4 L110 61.3 L120 59.2 L130 57.5 L140 56.4 L150 56 L160 56.4 L170 57.5 L180 59.2 L190 61.3 L200 63.4 L210 65.4 L220 66.9 L230 67.8 L240 68 L250 67.3 L260 66 L270 64.1 L280 62 L290 59.9"
/>
<text class="rule-label" x="14" y="112">30 m buffer</text>
</g>
<path
class="stream"
d="M10 59.9 L20 62 L30 64.1 L40 66 L50 67.3 L60 68 L70 67.8 L80 66.9 L90 65.4 L100 63.4 L110 61.3 L120 59.2 L130 57.5 L140 56.4 L150 56 L160 56.4 L170 57.5 L180 59.2 L190 61.3 L200 63.4 L210 65.4 L220 66.9 L230 67.8 L240 68 L250 67.3 L260 66 L270 64.1 L280 62 L290 59.9"
/>
</svg>
</body>
</html>
The variant family
Same idea, one axis moved. Compare them side by side before you commit.