Jump to content
Search Community

How to use position fixed with ScrollSmoother

matashaEs test
Moderator Tag

Recommended Posts

Hey,

 

Maybe I'm wrong, but try this out and tell me if this is what you are looking for.

ScrollTrigger.create({
  trigger: ".position-fixed",
  start: "top top",
  end: "+=500 top",
  pin: true,
  markers: true
});

 

In addition, I would recommend you explore the demos to see how they do it there. That's always a good starting point along with the documentation.

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