Parallax card

A tilting card with moving light and shadow.

0:00 / 0:01

Customize

4
1
0.35
24

Installation

pnpm odori add component parallax-card

Edit the source in videos/components/parallax-card/. 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
180 frames · 6s
Minimum duration
60 frames · 2s
Entrance
0 frames
Exit
0 frames
Reduced motion
the plane holds level with a static sheen and shadow
Requires
Odori
Content limits
none

Props

PropTypeDefaultRequired
childrenWhat rides the plane: a screenshot, a chart, any block of UI.ReactNode——
tiltMaximum tilt in degrees. Small on purpose; past a few degrees the eye reads a broken window, not a floating object.number4—
speedMultiplier on the drift rate.number1—
sheenStrength of the travelling sheen, 0 to 1.number0.35—
radiusCorner radius in design pixels.number24—

Related components

All components