Video componentsChange between shots
Underline road
the underline of a headline extends, bends down and becomes the route on a simple map, with the camera trailing the head at its speed and stopping at the map’s end.

When to use
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.
The code
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 landEasing
Each ease is a pair of After Effects handles from core/motion/presets.js. Every curve as CSS.
| Ease | Leaving a key | Arriving at a key |
|---|---|---|
land | 12% influence, speed 4.8 | 75% influence, speed 0 |
settle | 60% influence, speed 0 | 60% influence, speed 0 |
Notes
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
settleand the pin takesland. - 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.
Sound
Sound: none; the pin landing is the one point a cue could use.





