uibrik

Redact and Reveal

Preview

Customize

Sweep300ms
Stagger40ms
Move420ms
Text size48px

Usage

import { RedactReveal } from "@/components/uibrik/redact-reveal/redact-reveal";

<RedactReveal play={play} />

Installation

npx shadcn@latest add https://uibrik.com/r/redact-reveal.json
Adds the files to components/uibrik/redact-reveal and installs motion. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/redact-reveal.

Props

RedactReveal
lines
Type string[]
["The plan is still on","Meet me after the rain tonight","Burn this note"]
Cycled through, one per play.
sweep
Type number
300
Time for one bar to cover or peel.
stagger
Type number
40
Delay between neighbouring bars.
move
Type number
420
Time for bars to travel onto the next line.
playrequired
Type number
–
Each change plays the effect again; 0 shows its resting state.