Animating a counter #1157
Unanswered
cezarneaga
asked this question in
Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I need a bit of help figuring something out. We have a counter that gets incremented and decremented by buttons.
I want the animation to take the number up (
transform: translateY('20px'
) or down(transform: translateY('-20px'
) based on the evolution of the counter (increment/decrement).i am using state for count and i track previous value with refs.
i cannot figure out how to achieve this.
is it possible?
thanks,
Cezar
Beta Was this translation helpful? Give feedback.
All reactions