Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Alexander S.

Create a pause after Scrolltrigger animation

Go to solution Solved by Shaun Gorneau,

Recommended Posts

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

  • Solution

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

  • Like 4
Link to comment
Share on other sites

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

  • Like 3
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.
×