Nuns Practicing Misanthropy
Wondering what’s next for npm?Check out our public roadmap! »

text-transition

1.0.0 • Public • Published

text-transition

A simple React Component to Animate Between strings, with per-character animations.

Imagine power-point's by character animations.

API:

string

String to be displayed.

before

CSS transform to be applied to every character when it enters.

after

CSS transform to be applied to every character ehn it leaves.

duration

Duration of CSS transition in seconds

easing

CSS easing string

delay

CSS transition delay per character. This will be multiplied by the index of each character for linearly staggered animations.

Install

npm i text-transition

DownloadsWeekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • avatar