- Zero dependency – This package works independently.
- Flexible – Styles can be inherited from parent.
- Simple – Uses basic CSS transition animations.
- Control – Customize colors, speed, direction.
- Install:
npm install text-reveal
- Use:
import TextReveal from 'text-reveal';
<TextReveal
text={['Hello', 'world']}
textColor="grey"
fillColor="white"
/>
- Styles inherits from parent:
<div style={{fontSize : '2rem', backgroundColor : 'black'}}>
<TextReveal
text={['Hello', 'world']}
textColor="grey"
fillColor="white"
/>
</div>
- Check out my documentation for guides and a full API reference.
- Want to contribute? I'd love that. Contributing guide got you covered.
- Text Reveal is MIT licensed.