
Separator
-
Posts
16 -
Joined
-
Last visited
Community Answers
-
Separator's post in Animate array of items based on index was marked as the answer
BTW, i found the solution.
My mistake was that i was setting `hover` as a global variable.
I had to set it as const hover = gsap.to...
so:
const hover = gsap.to(animateElements, { translateY: -15, autoAlpha: 1, paused: true, ease: "power2.inOut", stagger: 0.1, });