WinterCore / react-text-transition

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

feat: support any ReactNode element instead support just text #47

Closed JuanSeBestia closed 2 years ago

JuanSeBestia commented 2 years ago

I need animate a element, not just a text, so I create my own implementation and share if it's helpfully. sorry for the indentation

WinterCore commented 2 years ago

Hey.

Thanks for the PR, I've been wanting to add this feature for a long time. So I rewrote some stuff in v3.0.2 and added the ability to pass any element you want as a react child, so that should solve your issue.