Carousel

A paced media sequence with stable aspect handling.

0:00 / 0:01

Customize

45
14

Installation

pnpm odori add component carousel

Edit the source in videos/components/carousel/. 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
Media
Recommended duration
240 frames · 8s
Minimum duration
60 frames · 2s
Entrance
14 frames
Exit
14 frames
Reduced motion
the first item is shown without paging
Requires
Odori
Content limits
items ≤ 8

Props

PropTypeDefaultRequired
itemsItems to page through. Strings are treated as image URLs.Array<string | ReactNode>——
holdInFramesFrames each item holds before the next arrives.number45—
changeInFramesFrames the change takes.number14—
indicatorDots showing position.booleantrue—

Related components

All components