Back to Components
Text Effects
Scroll Reveal Text
Reveals words or characters as you scroll, creating a story-like reading flow.
Scroll down to reveal
Everywordarriveswithitsownmoment.Scrolltorevealthestory.
Dependencies
- clsx
- tailwind-merge
- framer-motion
Files
- components/ui/scroll-reveal-text.tsx
Installation
Using shadcn CLI
npx shadcn add scroll-reveal-text --url https://ui.hampton.ioManual installation
Copy the component file to your project and install dependencies:
npm install clsx tailwind-merge framer-motion