Modern Text Reveal
A smooth and modern text reveal component with a slide animation effect.
Text Reveal
Slide Animation
You
You
wanted
wanted
to
to
see
see
magic.
magic.
Tadaaa
Tadaaa
import { ModernTextReveal } from "@/components/ui/modern-text-reveal";
export default function Home() {
return (
<div className="flex h-screen flex-col items-center justify-center gap-8">
<ModernTextReveal
text="You wanted to see magic. Tadaaa"
className="text-2xl font-semibold"
/>
</div>
);
}Installation
Paste this code in your terminal
npx shadcn@latest add https://rohitnirban.com/r/modern-text-reveal.jsonProps
| Prop | Type | Default | Required |
|---|---|---|---|
textThe sentence to reveal, split and animated word by word. | string | — | Yes |
classNameAdditional CSS classes applied to each word. | string | — | No |