Back to the library

Delineate — proposed, then surveyed

Variant: Proposed → surveyed

A boundary that starts as a claim and ends as a measurement. The lot sits dashed — in this set a dash is a line that has not been earned yet — and a surveyor walks it: a stake lands at each corner from 60% scale as the pen arrives, and each edge is ruled solid at one linear rate, every leg getting a share of the walk proportional to its length, because a chain laid on the ground does not hesitate and an eased stroke would claim the short edges took as long as the long ones. One corner is found 1.8 m short of the plan, and the solid line goes where the ground says, not where the drawing said: the dashed proposal stays visible beside it. The offset is known the moment that corner is staked, but its rust callout waits until the whole boundary is in, since a number read mid-walk pulls the eye off the walk; PROPOSED crossfades to SURVEYED only after it lands. The reset clears the survey as one layer and leaves the plan untouched. Reach for it wherever a draft becomes a verified thing — imported versus confirmed geometry, a suggested selection becoming a committed one — and the difference between them is worth keeping on screen.

svgline-drawingdiagramstatusstaggerloop

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 — proposed, then surveyed</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 walk takes 40% of it at one pen rate, so every
           edge's share of the cycle is its share of the perimeter; the
           finished survey then holds for nearly three seconds. */
        --cycle: 7.2s;
        --t: calc(var(--cycle) / var(--speed));

        --ease-out: cubic-bezier(0.23, 1, 0.32, 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 proposal is dashed from the first frame: a dash is a line that
         has not been earned yet. It never animates — it is the plan, and the
         survey is what changes around it. */
      .proposed {
        fill: none;
        stroke: var(--slate);
        stroke-width: 1.25;
        stroke-dasharray: 5 4;
        stroke-linejoin: round;
        opacity: 0.45;
      }

      .survey {
        animation: survey-clear var(--t) var(--ease-out) infinite;
      }

      /* Each edge is walked at one rate — a chain against the ground does
         not hesitate — so linear, and each keyframe window is proportional
         to that edge's length. */
      .edge {
        fill: none;
        stroke: var(--clay-d);
        stroke-width: 2;
        stroke-linecap: round;
        stroke-dasharray: 100 200;
        stroke-dashoffset: 100;
        animation: walk-ab var(--t) linear infinite;
      }

      .edge.bc {
        animation-name: walk-bc;
      }

      .edge.cd {
        animation-name: walk-cd;
      }

      .edge.da {
        animation-name: walk-da;
      }

      /* A stake lands as the pen reaches its corner. From 0.6, never zero:
         a stake is driven into a place that already exists. */
      .stake {
        fill: var(--paper);
        stroke: var(--clay-d);
        stroke-width: 1.5;
        transform-box: fill-box;
        transform-origin: center;
        opacity: 0;
        transform: scale(0.6);
        animation: stake-a var(--t) var(--ease-out) infinite;
      }

      .stake.b {
        animation-name: stake-b;
      }

      .stake.c {
        animation-name: stake-c;
      }

      .stake.d {
        animation-name: stake-d;
      }

      /* The offset is known the moment C is staked, but it is reported only
         once the whole boundary is in: one number about one corner, read
         while the pen is still walking, would pull the eye off the walk. */
      .delta {
        opacity: 0;
        animation: delta-in var(--t) var(--ease-out) infinite;
      }

      .delta path {
        fill: none;
        stroke: var(--rust);
        stroke-width: 1.25;
        stroke-linejoin: round;
      }

      .delta text {
        fill: var(--rust);
        font-size: 12px;
        font-weight: 600;
        font-variant-numeric: tabular-nums;
      }

      .lot {
        fill: var(--slate);
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.08em;
        opacity: 0.55;
      }

      .status {
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.14em;
      }

      .status.was {
        fill: var(--slate);
        opacity: 0.6;
        animation: word-out var(--t) var(--ease-out) infinite;
      }

      .status.now {
        fill: var(--clay-d);
        opacity: 0;
        animation: word-in var(--t) var(--ease-out) infinite;
      }

      @keyframes walk-ab {
        0%,
        9% {
          stroke-dashoffset: 100;
        }
        21.3%,
        100% {
          stroke-dashoffset: 0;
        }
      }

      @keyframes walk-bc {
        0%,
        21.3% {
          stroke-dashoffset: 100;
        }
        28.5%,
        100% {
          stroke-dashoffset: 0;
        }
      }

      @keyframes walk-cd {
        0%,
        28.5% {
          stroke-dashoffset: 100;
        }
        41%,
        100% {
          stroke-dashoffset: 0;
        }
      }

      @keyframes walk-da {
        0%,
        41% {
          stroke-dashoffset: 100;
        }
        49%,
        100% {
          stroke-dashoffset: 0;
        }
      }

      @keyframes stake-a {
        0%,
        6% {
          opacity: 0;
          transform: scale(0.6);
        }
        9%,
        100% {
          opacity: 1;
          transform: scale(1);
        }
      }

      @keyframes stake-b {
        0%,
        21.3% {
          opacity: 0;
          transform: scale(0.6);
        }
        24.3%,
        100% {
          opacity: 1;
          transform: scale(1);
        }
      }

      @keyframes stake-c {
        0%,
        28.5% {
          opacity: 0;
          transform: scale(0.6);
        }
        31.5%,
        100% {
          opacity: 1;
          transform: scale(1);
        }
      }

      @keyframes stake-d {
        0%,
        41% {
          opacity: 0;
          transform: scale(0.6);
        }
        44%,
        100% {
          opacity: 1;
          transform: scale(1);
        }
      }

      @keyframes delta-in {
        0%,
        51% {
          opacity: 0;
        }
        55%,
        100% {
          opacity: 1;
        }
      }

      @keyframes word-out {
        0%,
        56% {
          opacity: 0.6;
        }
        59%,
        91% {
          opacity: 0;
        }
        96%,
        100% {
          opacity: 0.6;
        }
      }

      @keyframes word-in {
        0%,
        57% {
          opacity: 0;
        }
        61%,
        88% {
          opacity: 1;
        }
        92%,
        100% {
          opacity: 0;
        }
      }

      /* The survey clears as one layer and the plan is left exactly as it
         was — a reset that redrew the dashes would claim the plan changed. */
      @keyframes survey-clear {
        0%,
        88% {
          opacity: 1;
        }
        94%,
        100% {
          opacity: 0;
        }
      }

      @media (prefers-reduced-motion: reduce) {
        /* The walk is the content — which corner is staked, and when the
           traverse closes — so it stays, at half rate. */
        .survey,
        .edge,
        .stake,
        .delta,
        .status.was,
        .status.now {
          animation-duration: calc(var(--t) * 2);
        }
      }
    </style>
  </head>
  <body>
    <svg
      class="sheet"
      viewBox="0 0 300 180"
      role="img"
      aria-label="A site plan of a lot whose proposed boundary is dashed. A surveyor walks the boundary corner by corner, staking each one and ruling a solid line along each edge. One corner is found short of where the plan put it, so the dashed proposal stays visible beside the solid line there, with the 1.8 metre offset noted. The label changes from Proposed to Surveyed."
    >
      <path class="proposed" d="M60 40 L230 32 L252 142 L70 152 Z" />

      <text class="lot" x="150" y="84" text-anchor="middle">LOT 14</text>
      <text class="status was" x="150" y="104" text-anchor="middle">PROPOSED</text>
      <text class="status now" x="150" y="104" text-anchor="middle">SURVEYED</text>

      <g class="survey">
        <line class="edge" pathLength="100" x1="60" y1="40" x2="230" y2="32" />
        <line class="edge bc" pathLength="100" x1="230" y1="32" x2="240" y2="130" />
        <line class="edge cd" pathLength="100" x1="240" y1="130" x2="70" y2="152" />
        <line class="edge da" pathLength="100" x1="70" y1="152" x2="60" y2="40" />

        <circle class="stake" cx="60" cy="40" r="3.5" />
        <circle class="stake b" cx="230" cy="32" r="3.5" />
        <circle class="stake c" cx="240" cy="130" r="3.5" />
        <circle class="stake d" cx="70" cy="152" r="3.5" />

        <g class="delta">
          <path d="M243 133 L253 143 L260 153 H299" />
          <text x="299" y="150" text-anchor="end">Δ 1.8 m</text>
        </g>
      </g>
    </svg>
  </body>
</html>