Black Friday: 30% off Pro

Get 30% off

Redact and Reveal

Preview

Customize

Sweep300ms
Stagger40ms
Move420ms
Text size48px

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.

Usage

import { RedactReveal } from "@/components/uibrik/redact-reveal/redact-reveal";​const lines = ["The plan is still on", "Meet me after the rain tonight", "Burn this note"];​<RedactReveal  play={0}  lines={lines}  sweep={300}  stagger={40}  move={420}/>

Where to use Redact and Reveal

  • Security and privacy heroes

    Black bars redacting a line then lifting to reveal the next suits privacy brands.

  • Editorial sites

    A redaction effect fits investigative journalism and reports.

  • Rotating phrases

    Each reveal swaps in the next message with a strong visual cue.

    Pairs with Scramble to Word

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.