WinterCore / react-text-transition

Animate your text changes
MIT License
601 stars 26 forks source link

Allow to pass a set of colors out of which a random one will be chosen for the animated word. #52

Closed LucaNerlich closed 1 year ago

LucaNerlich commented 1 year ago

Looking for a suggestion how the colors could be applied only when the new word is shown. Right now, the word color gets swapped, after its animation is done, which looks a bit off.

text

idindrakusuma commented 1 year ago

Hi @LucaNerlich

Thank you for taking the time to submit your pull request to our project. Unfortunately, we are unable to merge your changes. Because we render components as React Children now, you can create custom colors at your children's component level and not at the package level.

Thank you!