import { BlurReveal } from "@/components/ui/blur-reveal"
export function BlurRevealDemo() {
return (
<div className="flex max-w-lg flex-col space-y-2">
<span className="font-gilroy text-3xl font-semibold">
<BlurReveal delay={0}>This </BlurReveal>
<BlurReveal delay={0.1}>is </BlurReveal>
<BlurReveal delay={0.2}>a </BlurReveal>
<BlurReveal delay={0.3}>Title </BlurReveal>
</span>
<BlurReveal delay={0.4} className="text-muted-foreground font-light">
And this is the amazing text that just can't wait
<br /> to reveal itself! Watch it come to life with a blur.
</BlurReveal>
<BlurReveal delay={0.5}>
<button className="bg-muted mt-1.5 inline-flex h-8 items-center justify-center rounded-md px-4 py-2 text-xs">
Discover
</button>
</BlurReveal>
</div>
)
}
pnpm dlx shadcn@latest add https://badtz-ui.com/r/blur-reveal.json
import { BlurReveal } from "@/components/ui/blur-reveal";
<BlurReveal>This is a title</BlurReveal>
BlurReveal
props.
Prop | Type | Default |
---|---|---|
className? | string | - |
children? | React.ReactNode | - |
delay? | number | 0 |
duration? | number | 1 |
This component is inspired by Linear
On This Page