Cursor focus

An authored pointer that moves, holds, and clicks over a surface.

0:00 / 0:01

Customize

28

Installation

pnpm odori add component cursor-focus

Edit the source in videos/components/cursor-focus/. 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
40 frames · 1.33s
Entrance
6 frames
Exit
20 frames
Reduced motion
the pointer holds its first stop without travelling
Requires
sans font
Content limits
none

Props

PropTypeDefaultRequired
pathThe authored path. Coordinates are the composition's own pixels.CursorStop[]—Yes
childrenThe surface the pointer moves over.ReactNode——
sizePointer size in canvas pixels, before the design scale.number28—
spotlightDraw a soft spotlight under the pointer, dimming the rest of the frame.booleanfalse—

Related components

All components