Animate atom values over time #2488
Unanswered
kevinschaich
asked this question in
Ideas
Replies: 1 comment
-
useAtom is like useState. useState isn't usually for tweens. But, if your case works with useState, useAtom can do too. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Does anyone have examples of tweening / transitioning / animating atom values over time? E.g:
Is there a nice way to abstract that transition away with some utilities to slowly transition it over 1000ms instead of jumping straight from 200 to 500?
I know this can be done in Framer Motion etc. – but I haven't seen it paired with global application state in an example anywhere.
Beta Was this translation helpful? Give feedback.
All reactions