Pixel wipe

A cover of solid blocks clearing one by one, a wipe that travels but crackles.

0:00 / 0:01

Customize

0
30
64

Installation

pnpm odori add component pixel-wipe

Edit the source in videos/components/pixel-wipe/. 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
Motion
Recommended duration
60 frames · 2s
Minimum duration
30 frames · 1s
Entrance
30 frames
Exit
0 frames
Reduced motion
the cover is gone from the first frame
Requires
Odori
Content limits
none

Props

PropTypeDefaultRequired
childrenWhat is revealed as the blocks clear.ReactNode——
atFrame the wipe begins.number0—
durationInFramesHow long the last block takes to clear.number30—
blockBlock size in design pixels. Capped so the cover stays cheap.number64—
colorColour of the cover. Defaults to the brand background.string——
directionWhich way the wipe travels."right" | "left" | "down" | "up""right"—

Related components

All components