WinterCore / react-text-transition

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

Any idea on how to make the animation trigger on every state change? #59

Open rsa16 opened 1 year ago

rsa16 commented 1 year ago

So I have a state I'm using to track whether my menu is open, and opening the menu causes the animation to appear. I tried to implement my transition in framer motion but couldn't quite figure it out. I also tried customizing the text transition code to not animate when the text was the same as the previous however my lack of knowledge of react-spring limited me and I was unable to get it to work. How should I go about this?