Card deck

Stacked cards that cycle from front to back.

0:00 / 0:01

Customize

50
18
16

Installation

pnpm odori add component card-deck

Edit the source in videos/components/card-deck/. 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
240 frames · 8s
Minimum duration
68 frames · 2.27s
Entrance
0 frames
Exit
0 frames
Reduced motion
the deck holds with the first card in front
Requires
sans font
Content limits
cards ≤ 5

Props

PropTypeDefaultRequired
childrenThe cards, front first. Three to five reads best.ReactNode——
dwellFramesFrames the front card holds before it yields.number50—
swapFramesFrames the swap takes.number18—
offsetVertical spread between stacked cards, in design pixels.number16—

Related components

All components