Use react-spring to animate group instead of lerp #496
kaeltran16
started this conversation in
General
Replies: 1 comment 2 replies
-
try like this: <animated.group position={y.interpolate(r => ([0, y, 0])} check this out https://codesandbox.io/s/r3f-basic-demo-q21f7?file=/src/index.js |
Beta Was this translation helpful? Give feedback.
2 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.
-
Hi, I tried to convert the following snippet to react spring but it does not seem to work. My initial thought was group is animated differently from mesh. For some reason, the y value doesn't seem to change.
The original snippet:
My conversion:
Beta Was this translation helpful? Give feedback.
All reactions