Overview
The Text Reveal component creates an elegant sequential fade-in animation for text, splitting content by words and revealing them one by one with a staggered delay. Each word fades in from a blurred state to sharp focus, creating a polished, dynamic entrance effect. Use cases:- Hero section headings and taglines
- Landing page main content reveals
- Section introductions that need visual impact
- Drawing attention to important messaging
Installation
Usage
Imports
Props
The text content to reveal. The component splits this by spaces to animate each word individually.
Additional CSS classes to apply to the wrapper div. Use this to control typography, colors, and layout.
Whether to apply blur filter during the reveal animation. When
true, words transition from blurred to sharp. Set to false for a simple opacity fade.Duration in seconds for each word’s reveal animation. Controls how fast each word animates from hidden to visible.
Delay in seconds between each word’s animation start. Higher values create more spacing between word reveals.
Examples
Basic reveal
Without blur effect
Fast sequential reveal
Slow dramatic reveal
Hero section
Customization
Animation timing
Adjust theduration and staggerDelay props to control the pacing:
Typography styles
Use theclassName prop for full typography control:
Toggle blur effect
Disable the blur filter for a cleaner, simpler fade:The component automatically triggers the animation on mount. For scroll-triggered animations, wrap it with a scroll detection library like
framer-motion’s useInView.