Skip to content
Esc
navigateopen⌘Jpreview

before-after

Direct visual comparison with a controlled divider.

The same runtime that renders the export. Scrub to any frame, switch format, and edit the fixture props.

Installation

pnpm odori add @odori/before-after

Source is copied into videos/components/before-after/ and belongs to your repository. odori diff compares it with upstream later; odori update applies the change you accept. It has no registry dependencies.

Timing contract

Every registry component declares how it behaves in time.odori test fails a cut that violates these.

Family
Narrative
Aspect ratios
16:9 · 1:1
Recommended duration
120 frames · 4s
Minimum duration
72 frames · 2.4s
Entrance
60 frames
Exit
0 frames
Reduced motion
the divider starts at its resting position
Requires
sans font, mono font
Content limits
beforeLabel ≤ 18, afterLabel ≤ 18

Props

PropTypeDefaultRequired
beforeReactNodeYes
afterReactNodeYes
beforeLabelstring"Before"
afterLabelstring"After"
settleAtWhere the divider ends up, 0 to 1.number0.5