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
So, I'm trying to use the useAnimate() hook. It is scoped to a parent, I'm trying to animate a parent and its children.
The parent is a p element with the initial and variants set. The children are mapped spans with initial and variants set.
If I assign an animate attribute to the parent, it will work, but I'm trying to control when it starts using the useAnimate() hook. If I assign animate to the attribute, it starts on mount. With the useAnimation() hook, the controls can be applied to the attribute. But with the useAnimate() hook, the 'animate' function cannot be assigned.
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
-
So, I'm trying to use the
useAnimate()
hook. It is scoped to a parent, I'm trying to animate a parent and its children.The parent is a
p
element with theinitial
andvariants
set. The children are mapped spans withinitial
andvariants
set.If I assign an animate attribute to the parent, it will work, but I'm trying to control when it starts using the
useAnimate()
hook. If I assignanimate
to the attribute, it starts on mount. With theuseAnimation()
hook, the controls can be applied to the attribute. But with theuseAnimate()
hook, the 'animate' function cannot be assigned.Beta Was this translation helpful? Give feedback.
All reactions