Jump to content
Search Community

How to control its scroll speed?

qiyang0375 test
Moderator Tag

Recommended Posts

It is currently affected by the height of the body - but the trigger can be any element

Here's the scrollTrigger docs
 

gsap.to(airpods, {
  frame: frameCount - 1,
  snap: "frame",
  scrollTrigger: {
    trigger: '#container' // this can be any element
    scrub: 0.5,
    start: 'top bottom' // adjust the start of the trigger here
    end: 'bottom top' // adjust the end of the trigger here
  },
});

 

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...