Jump to content

Search In
  • More options...
Find results that contain...
Find results in...
Muhammad Naiem

Infinite Loop

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.