Instantiating a second component, while the first one is still animating, does not start from beginning #1856
-
Hi, I have something like the following:
The first Toasterbox slides in properly from the right (it's inside a container with style: { position: 'absolute', top: 0, right: 0, }), but if I instantiate a new instance for the component, it doesn't start at the beginning, but moves in concert with the first one. I tried to put the useSpring inside a useState, but that didn't help. How can I make the props variable per-component even though it's returned by useSpring? Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
joshuaellis
Mar 10, 2022
Replies: 1 comment 3 replies
-
do you have a codesandbox you could share? |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
raarts
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
do you have a codesandbox you could share?