Muhammad Naiem Posted July 12, 2021 Share Posted July 12, 2021 How do I this slider Infinite loop with auto play. Please help me. See the Pen VwegJwV by supah (@supah) on CodePen Link to comment Share on other sites More sharing options...
GreenSock Posted July 12, 2021 Share Posted July 12, 2021 Hi @Muhammad Naiem. Please read the forums guidelines. We love helping people with GSAP-specific questions, but we don't have the resources to offer free general consulting about logic issues or things like that. For auto-playing, one technique I've used is to have a delayedCall() that you simply restart(true), sorta like: let autoPlay = gsap.delayedCall(3, next); function next() { autoPlay.restart(true); // start the autoplay delay over again // your "go to next" logic here... } Good luck! 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