1.1.0 • Published 14 days ago
text-reveal v1.1.0
✨ Features
- Zero dependency – This package works independently.
- Tiny – Package size is only ~2.5kb.
- Flexible – Styles can be inherited from parent.
- Simple – Uses basic CSS transition animations.
- Control – Customize colors, speed, direction.
⚡️ Getting Started
Install:
npm install text-reveal
Use:
import TextReveal from 'text-reveal';
<TextReveal
text={['Hello', 'world']}
textColor="grey"
fillColor="white"
/>
3.Styles inherits from parent:
<div style={{fontSize : '2rem', backgroundColor : 'black'}}>
<TextReveal
text={['Hello', 'world']}
textColor="grey"
fillColor="white"
/>
</div>
📚 Docs
- Check out my documentation for guides and a full API reference.
💎 Contribute
- Want to contribute? I'd love that. Please raise PRs.
👩🏻⚖️ License
- Text Reveal is MIT licensed.