I'm making a date component right now and when the other value changes, the useeffect changes the date from one to another, how to make a text not immediately change it's value, but increment or decrement to the new value after other value have changed. I thought it can be doable with attaching useref.current to a text, but i can't see a way to animate it
React text ticking from one value to another
in GSAP
Posted
I'm making a date component right now and when the other value changes, the useeffect changes the date from one to another, how to make a text not immediately change it's value, but increment or decrement to the new value after other value have changed. I thought it can be doable with attaching useref.current to a text, but i can't see a way to animate it