Animations
TextReveal
Reveal text word-by-word with a clip-path slide animation.
Quick Preview
Installation
npm install framer-motion
// Copy fromsrc/components/animations/TextReveal.tsx
Examples
Hero headline
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
text* | string | - | Text to reveal |
staggerDelay | number | 0.06 | Stagger delay per word (seconds) |
delay | number | 0 | Initial delay (seconds) |
duration | number | 0.5 | Duration per word (seconds) |
whenInView | boolean | false | Trigger when in viewport |
once | boolean | true | Animate only once |
className | string | - | Wrapper element classes |
wordClassName | string | - | Individual word classes |