Route Track
A delivery being tracked on a drawn map: the route draws itself, a vehicle drives it and the steps complete as it passes them, the arrival minutes count down and the pin bounces on arrival. Visitors can pick a step to move the vehicle there or drag the slider along the route.
pixikit.com/docs/blocks/illustrations/route-track
Customize
Minutes24min
Default step0
Autoplay
Loop
Speed1.0x
Height360px
Width560px
Props
15| Name | Type | Default | Description |
|---|---|---|---|
steps | RouteTrackStep[] | DEFAULT_STEPS | The steps of the delivery, in order. |
title | string | "Order 2041" | The name in the top bar. |
arrivalLabel | string | "Arrives in {n} min" | The arrival line; {n} is the minutes left. |
arrivedLabel | string | "Delivered" | The line shown once the last step is done. |
minutes | number | 24 | The minutes left at the start of the route. |
scrubLabel | string | "Position on the route" | What screen readers call the position slider. |
defaultStep | number | 0 | The index of the step the vehicle starts at. |
onStepChange | (index: number) => void | None | Called when the visitor picks a step or drags the slider across one. |
autoplay | boolean | true | Starts when the scene scrolls into view; when off it waits for a click on replay. |
loop | boolean | true | Plays again from the start after the hold. |
speed | number | 1 | Playback speed multiplier. |
height | number | 360 | The height of the scene in px. |
width | number | 560 | The widest the scene grows, in px. It shrinks to fit a narrower parent. |
replayLabel | string | "Replay" | What screen readers call the replay button. |
className | string | None |