Map route tracing on scroll
Route tracing is the effect every logistics, travel and delivery site reaches for, and it is usually built on a mapping SDK far heavier than the animation itself. If the route is an SVG path, none of that is needed. The map, street names and distance badge stay static; only the route line advances, so the reader follows the journey at their own scroll speed.
The code
A same-day courier's home page for a fictional Lisbon company. The rider's route traces block by block across the street map to your door as the map scrolls in, beside a live ETA card.
<ScrollDraw
selector=".route"
trigger={{ start: 'top 80%', end: 'top 25%' }}
easing="ease-in-out"
once
>
<svg viewBox="0 0 640 420">
<path className="block" d="…" /> {/* streets and parks stay put */}
<path className="route" d={elbow([pickup, …turns, door])} />
<circle className="rider" … />
</svg>
</ScrollDraw>
Same-day courier tracking in Lisbon
Parcelry
Related examples
Make your own in the SVG path editor: set it up, watch it run, copy the code.
MIT licensed, zero runtime dependencies. Every API is a separate entry point, so you only ship what you import. Full API reference →