Sandy Choudhary Posted October 12, 2024 Posted October 12, 2024 Hello Guys, Hope you are doing great. iam trying to create auto slider which will be work in both way auto slide as well controlled button. its working fine if next button click after the time line complete but its giving issue when next button pressed faster as compared to delay time given. any help or suggestion will be very helpfull Thanks See the Pen yLmgpoq by Sandy-Choudhary (@Sandy-Choudhary) on CodePen.
Solution Rodrigo Posted October 12, 2024 Solution Posted October 12, 2024 Hi, Maybe change this: function animateSlide() { timer.restart(true); slideAnimation.kill(); //... } To this: function animateSlide() { timer.restart(true); slideAnimation.progress(1).kill(); //... } Here is a fork of your demo: See the Pen jOgypvy by GreenSock (@GreenSock) on CodePen. Hopefully this helps Happy Tweening!
Sandy Choudhary Posted October 13, 2024 Author Posted October 13, 2024 @Rodrigo thank you very much its helped.
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