Ivan Mocs Posted March 10 Share Posted March 10 how do I add a delay of about 3 seconds after the page is loaded, I tried adding a 3 second delay in gsap.to but when I scroll it doesn't want any delay I've also tried using a timeout outside of ScrollTrigger.batch with a duration of 500ms, but it makes it only execute half of the elements that will be displayed. See the Pen XWQdbBq by adeivan (@adeivan) on CodePen Link to comment Share on other sites More sharing options...
mvaneijgen Posted March 10 Share Posted March 10 Would something like this work? I've created a gsap.delayedCall() https://gsap.com/docs/v3/GSAP/gsap.delayedCall()/ and a function for your batch, so now on page load it waits 3 seconds, but all the future batches play instantly. See the Pen qBwZZwv?editors=0010 by mvaneijgen (@mvaneijgen) on CodePen 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