Share Posted May 19, 2021 Hello everyone! I am new to GSAP and quite blown away by the possibilities. What I am trying to achieve is to insert a short pause at the end of my scrolltrigger stagger. Right now the animation finishes and immediately begins to leave the screen upon completion. I would like it to require an extra scroll or two after it completes, so the user has some feedback "Ok, it's done playing" and has some time to consume the content before it flies off the screen. How would this best be achieved? My apologies if this is already covered in the docs, I have been searching, but it can get a bit overwhelming for a beginner. Cheers! Alexander See the Pen YzZpVoK by aStingl (@aStingl) on CodePen Link to comment Share on other sites More sharing options...
Solution Solution Share Posted May 19, 2021 Hi @Alexander S., One way you can achieve this is to move from a tween to a timeline and allow scrollTrigger to control the timeline. Then, you can tack on an empty tween with a relative position to achieve the "pause" ... which is really just a tween affecting/doing nothing for a specified amount of time. See the Pen KKWNvaL?editors=0010 by sgorneau (@sgorneau) on CodePen Hope this helps! Shaun 4 Link to comment Share on other sites More sharing options...
Author Share Posted May 19, 2021 Hello Shaun, Thank you very much! This works perfectly and also gives my other animations a much better feel. I really appreciate the help! Alexander 3 Link to comment Share on other sites More sharing options...
Share Posted May 19, 2021 Happy to help, @Alexander S.! 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