You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello there,
I want to know if framer-motion-3d put some constraints to manual change. I actually have <group> that I want animate with the first render and then I want to manually manage the position and scale changes, but if also I update the position, it does not move from the initial position acheive by framer-motion-3d.
I also printed x value into useLayouEffect() and it is correct. Also ref.current.position.x value is correcly updated if printed it. If I remove motion and use just group my manual change works same (same values printed) but group also move.
So I want to ask if framer-motion is disabling in some ways manual updates to position if already manage by it. If yes, there is a better solution to conditionally render <motion.group>.
I also used onAnimationComplete() callback to know if the animation is still running and no, I trigger the manual change when the animation is already ended.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello there,
I want to know if framer-motion-3d put some constraints to manual change. I actually have
<group>
that I want animate with the first render and then I want to manually manage the position and scale changes, but if also I update the position, it does not move from the initial position acheive by framer-motion-3d.I am doing something like that
and then
I also printed
x
value intouseLayouEffect()
and it is correct. Alsoref.current.position.x
value is correcly updated if printed it. If I remove motion and use justgroup
my manual change works same (same values printed) but group also move.So I want to ask if framer-motion is disabling in some ways manual updates to position if already manage by it. If yes, there is a better solution to conditionally render
<motion.group>
.I also used
onAnimationComplete()
callback to know if the animation is still running and no, I trigger the manual change when the animation is already ended.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions