How to animate changes to svg path d attribute? #1898
Unanswered
kylegillen
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
-
Hi. I'm trying to animate changes to an animated path component using
withSpring
for the dynamic values. I'm clearly doing something wrong however, as the value returned from withSpring doesn't get parsed in the string, and instead returns an object, which breaks the code. If I hoist the value out of the string to its own variable I get the same error.To be clear, I'm trying to achieve an animation where the line goes from X1 -> X2 -> X3 ->X4 in a linear fashion, like straight lines drawing a box, or a stroke tracing the path of a circle.
Could someone point me in the right direction please?
Original Code
withSpring (doesn't work)
hoisted (doesn't work)
Beta Was this translation helpful? Give feedback.
All reactions