Share Posted July 21, 2022 (edited) Hi there, I edited the codepen therefore also the question. Its strange that now the animation happens only on the last item of the array and not on the array im hovering over. Any help, please? See the Pen zYWwXvL by Separator (@Separator) on CodePen Edited July 21, 2022 by Separator I changed the codepen code Link to comment Share on other sites More sharing options...
Author Share Posted July 21, 2022 Anyone that can help me, please? Link to comment Share on other sites More sharing options...
Solution Author Solution Share Posted July 22, 2022 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, }); 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now