Jump to content
Search Community

Scale on scroll before scrolling on the page

De Internetarchitect test
Moderator Tag

Go to solution Solved by mvaneijgen,

Recommended Posts

 Have you checked the docs? See the once property in ScrollTrigger https://gsap.com/docs/v3/Plugins/ScrollTrigger/

 

Quote

 

  • once: Boolean - If true, the ScrollTrigger will kill() itself as soon as the end position is reached once. This causes it to stop listening for scroll events and it becomes eligible for garbage collection. This will only call onEnter a maximum of one time as well. It does not kill the associated animation. It's perfect for times when you only want an animation to play once when scrolling forward and never get reset or replayed. It also sets the toggleActions to "play none none none".

 

  • 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.
×
×
  • Create New...