Jump to content

Search In
  • More options...
Find results that contain...
Find results in...
Catalin R.

Add different functions on play and reverse inside of a timelineMax

Recommended Posts


I need to add freezeBrowser function when I play this timelineMax and unfreezeBrowser function on reverse of TimelineMax. I need these functions to freeze and unfreeze the browser.

How can I do that?


See the Pen QPpQYm?editors=0010 by catalin_rusu (@catalin_rusu) on CodePen

Link to comment
Share on other sites

What do you mean by "freeze" and "unfreeze" the browser? GSAP can't force the browser to literally freeze (not execute any JavaScript, events, CSS transitions/animations, etc.). You can use an onComplete and/or an onReverseComplete if you want to trigger an action at the start or end of a tween/timeline. Does that help? 

  • Like 2
Link to comment
Share on other sites


Wow! It works with onStart and onReverseComplete!

Thanks a lot!

  • Like 1
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.