Text Reveal
Reveal text with different effects
Installation
Basic Usage
1<TextReveal text="Hello, world!" variant="blur" />
Advanced Usage
1<TextReveal2 text="Hello, world!"3 variant="blur"4 className="text-2xl font-bold"5 delayPerWord={0.1}6 duration={1}7/>
- Blur: Blur the text
- Chat: Chat-like effect
- Pop: Pop-like effect
1// Blur2<TextReveal text="Hello, world!" variant="blur" className="text-2xl font-bold" delayPerWord={0.1} duration={1} />3 4// Chat5<TextReveal text="Hello, world!" variant="chat" className="text-2xl font-bold" delayPerWord={0.1} duration={1} />6 7// Pop8<TextReveal text="Hello, world!" variant="pop" className="text-2xl font-bold" delayPerWord={0.1} duration={1} />
Props
Best Practices
- Clear Labels: Use descriptive and concise text reveal labels
- Consistent Icons: Use consistent icon styles throughout
- Logical Grouping: Group related text reveal items together
- Keyboard Navigation: Ensure all items are accessible via keyboard
- Loading States: Show loading indicators for dynamic content