Animating a sequence based on prop change #1535
Unanswered
jackharding
asked this question in
Q&A
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.
-
I'm struggling to fully understand how to use this library for what I need. I've managed to splice together a working example of what I need based on some code from William Candillon's course, but I feel like it's the wrong way to go about it, so I was just hoping someone might be able to suggest a better way.
I need to animate an element's Y position based on received props (in this example I'm just using state):
While this sort of works, I'm not happy with it for a couple of reasons:
I don't seem to be able to tag this as a question, so apologies if this is the wrong place to ask.
Beta Was this translation helpful? Give feedback.
All reactions