adrianmcli / react-reveal-text

✨ A small react library for animating the revealing of text.
https://adrianmcli.github.io/react-reveal-text/
186 stars 14 forks source link
animation effect javascript react reactjs style text-animation transition

React Reveal Text

npm dependencies travis bithound license

A small react library for animating the revealing of text.

gif animation

Demo/Tutorial available here: https://adrianmcli.github.io/react-reveal-text/

The demo page was built with React Storybook.

Features πŸŽ‰

Getting Started

  1. Install:

    npm install --save react-reveal-text
  2. Use:

    <ReactRevealText>WELCOME!</ReactRevealText>

API

Interactive docs with live-editable props here.

This component has many props that you can manipulate; below is a list of all of them.

Note that the component only re-renders when the show property has been changed.

Basic Properties

Transition Properties

Each letter has its own randomly generated delay before its transition begins.

Contributing

This project was built using my two other tools: React Build Lib and React Build Dist. These tools are still very early in development, so if you are building these libraries, you may encounter some bugs. PRs and issues are welcomed and encouraged! Should probably add some testing too.