# Underline road

> Underline road: the underline of a headline extends, bends down and becomes the route on a simple map. 5 s clip. Free, Apache-2.0.

Canonical: https://vawe.dev/video-components/underline-road
Last updated: 2026-10-29

**Use when** a line must become a route: one blue stroke draws along real streets from a start dot to a destination pin, and the result card shows the time. The stroke is one path with one dash offset, so its head never jumps at a corner. Clip: [underline-road.mp4](https://vawe.dev/moves/underline-road.mp4) (5 s). Demo: [demo/underline-road.html](https://vawe.dev/moves/demo/underline-road.html).

```js
const pts = [[VX[1], HY[3]], [VX[1], HY[2]], [VX[3], HY[2]], [VX[3], HY[1]], [VX[4], HY[1]]];   // street centres: start, three turns, destination
const R = 38;                                                       // corners are quadratic curves, radius 38 units
const total = line.getTotalLength();
vawe.onFrame((t) => {
  const s = total * easeFn('settle')(clamp((t - 1.0) / 1.9));   // 1.9 s: a long travel that starts and ends at rest takes settle
  [casing, line].forEach((p) => { p.style.strokeDasharray = `${total} ${total}`; p.style.strokeDashoffset = total - s; });
});
body.setAttribute('transform', `translate(0 ${-30 * (1 - easeFn('land')(up))})`);   // the pin drops 30 units in 0.25 s on land
```

Sound: none; the pin landing is the one point a cue could use.

## How it looks and moves

- The clip copies a maps app in its light style: pale land, grey building footprints, white minor streets with a grey casing, yellow main streets, a green park, a blue river, and a street name on every street, in grey with a white halo.
- The route is the app blue (#4285f4) with a darker casing, 11 units wide, rounded at the turns. It runs on street centres, never across a block.
- Order: the directions card (start and destination) fades in at 0.25 s, the start dot shows at 0.7 s with a slow pulse, the route draws from 1.0 s to 2.9 s, the pin drops 30 units and fades in over 0.25 s (the start address on the card, 22 Mill Lane, is the street the route starts on), then the time card fades in at 3.2 s.
- The map does not pan or cut: the route preview fits the whole route on one screen, as the real app does. No spring or overshoot: the line takes `settle` and the pin takes `land`.
- The map is our own invented city (Cedar, Pine, Mill, Elm). Names and numbers are made up.
- Common mistake: the card names a start street that is not where the dot sits, or a card covers a street label. Start the card and the route on the same street, and keep the time card over blocks, not labels.
- The card text is 3.4 to 4.4 percent of the frame height, so it reads at once.

## Related

- [Word portal](https://vawe.dev/video-components/word-portal)
- [Caret door](https://vawe.dev/video-components/caret-door)
- [Shadow handoff](https://vawe.dev/video-components/shadow-handoff)
- [Highlight sweep](https://vawe.dev/video-components/highlight-sweep)
- [Swipe continues](https://vawe.dev/video-components/swipe-continues)
- [Drop and land](https://vawe.dev/video-components/drop-and-land)
- [All video components (Change between shots and more)](https://vawe.dev/video-components)
