Code walkthrough

Progressive code reveal with authored focal regions.

0:00 / 0:01

Customize

60

Installation

pnpm odori add component code-walkthrough

Edit the source in videos/components/code-walkthrough/. 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
Developer proof
Recommended duration
240 frames · 8s
Minimum duration
120 frames · 4s
Entrance
28 frames
Exit
0 frames
Reduced motion
all steps show without dimming
Requires
mono font
Content limits
lines ≤ 16, lineLength ≤ 62, steps ≤ 4

Props

PropTypeDefaultRequired
codestring—Yes
stepsWalkthroughStep[]—Yes
titlestring"videos/launch/video.tsx"—
holdFrames each step holds before the next takes focus.number60—

Related components

All components