Replies: 1 comment
-
For this specific case, you could use |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hey! I'm trying to use Spring to animate an SVG I'm loading with svgr. Here's what I'm trying
Unfortunately, react-spring doesn't recognize this element as one that I can animate (i.e. I can't write <animated.Dade ... />), and svgr's properties don't accept
SpringValue<string>
, so I'm running.get()
on the SpringValue to get a string. This leads to some unfortunate performance issues where the animation is janky and doesn't get to the terminal fill value for longer than expected.Is there a better way to import animate an external SVG file? Couldn't find much discussion about it, every example I saw seems to use an inline SVG
Beta Was this translation helpful? Give feedback.
All reactions