Pointer trail

A scripted pointer that leaves a fading trail along its path.

0:00 / 0:01

Customize

12
26
14

Installation

pnpm odori add component pointer-trail

Edit the source in videos/components/pointer-trail/. Use odori diff to compare upstream changes and odori update to apply updates.

Timing contract

Use these durations and content limits when composing a scene. Run odori test to check your video.

Family
Interface
Recommended duration
150 frames · 5s
Minimum duration
50 frames · 1.67s
Entrance
0 frames
Exit
0 frames
Reduced motion
the pointer rests at its final waypoint with no trail
Requires
Odori
Content limits
waypoints ≤ 8

Props

PropTypeDefaultRequired
waypointsStops the pointer visits in order, as percentages of the frame.Array<{x: number; y: number}>——
dwellFramesFrames the pointer rests at each waypoint before leaving.number12—
travelFramesFrames each leg of travel takes.number26—
trailLengthHow many recent frames of motion the trail covers.number14—
colorTrail colour. Defaults to the brand accent.string——
childrenThe surface the pointer moves over.ReactNode——

Related components

All components