Blur reveal preview

Blur reveal

Text that sharpens into place from a soft blur, letter by letter or word by word.

  • Group
    Text effects
  • Origin
    Adapted · Spell UI · source
  • License
    MIT
  • Added
    Oct 18
npx shadcn@latest add @deank/blur-reveal

The registry stays private. Install from the repo with a GitHub token — see the README.

Usage

import { BlurReveal } from "@/registry/components/blur-reveal/blur-reveal";

<BlurReveal>Label</BlurReveal>

Props

PropTypeDefaultDescription
childrenstring
className?string
delay?number0Seconds before the first segment starts.
speedReveal?number1.5Higher is a faster cascade across the text.
speedSegment?number0.5Higher is a faster fade for each segment.
trigger?booleantrueShow the text. Set to false to play the exit.
by?"char" | "word""char"Reveal letter by letter or word by word.
onAnimationComplete?() => void
onAnimationStart?() => void
as?keyof JSX.IntrinsicElements"p"
style?CSSProperties
inView?booleanfalseWait until the text scrolls into view.
once?booleantrueWith inView, only play the first time.
letterSpacing?string | number

When to use

Headlines that sharpen into place on load.

When not to use

Body text or repeated UI labels.

Related

Text reveal · Scramble text · Highlighted text