Share Posted June 23, 2022 Hello,. I'mm using gsap to animate some svg paths. My code uses Swiper.js to create a carousel. Swiper has a helper method 'slideChange' that fires on every swipe. When I'm using a fromTo animation but the stagger seems to fire multiple time? I tried adding the stagger to the first object in the fromTo function but that did not help. Also repeatRefresh: true did not help. Any thoughts would be appreciated. James. See the Pen RwQzEvv by limitedunlimited (@limitedunlimited) on CodePen Link to comment Share on other sites More sharing options...
Share Posted June 24, 2022 That's because you keep adding new sequenced timelines to the main timeline over and over and over again and then you're trying to play it from the beginning. I'm not really sure what your goal is there, but I think you could just get rid of the main timeline and use one: See the Pen oNEKzyE?editors=0010 by GreenSock (@GreenSock) on CodePen Link to comment Share on other sites More sharing options...
Author Share Posted June 24, 2022 Thank you for your time and thats a great explanation and the answer I was after. Apologies I was not clear enough about my intent. Much appreciated. 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