Accordion

Sections opening one at a time, the outgoing one closing as the next grows.

0:00 / 0:01

Customize

0
1
90

Installation

pnpm odori add component accordion

Edit the source in videos/components/accordion/. 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
180 frames · 6s
Minimum duration
75 frames · 2.5s
Entrance
14 frames
Exit
10 frames
Reduced motion
one section shown open
Requires
sans font
Content limits
none

Props

PropTypeDefaultRequired
sectionsAccordionSection[]——
opensWhich section opens, zero based.number0—
openAtFrame it starts opening.number20—
thenOpensA second section to open, which closes the first.number1—
thenAtnumber90—

Related components

All components