1.1.0 • Published 14 days ago

text-reveal v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
14 days ago

✨ 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

  1. Install:

    npm install text-reveal
  2. 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

💎 Contribute

  • Want to contribute? I'd love that. Please raise PRs.

👩🏻‍⚖️ License

  • Text Reveal is MIT licensed.