Jump to content
GreenSock

Victor Work

ScrollSmoother - Multiple Instance Overlapping

Recommended Posts

Hello Beautiful people.

Is there any way to avoid ScrollSmoother to overlap when using multiple instances?

Currently, it seems that is applying body container height to other instances (i.e: Modal cutting off)

 

Thanks in advance

See the Pen yLpraPy by victorwork (@victorwork) on CodePen

Link to comment
Share on other sites

pretty sure you are only supposed to have one ScrollSmoother instance for the entire page

 

found this in the FAQ in the docs

  • Can ScrollSmoother be applied to the contents of individual elements instead of the whole web page?

    No, ScrollSmoother is intended to be used to smooth the scrolling on the overall page, not individual elements.

  • Like 5
Link to comment
Share on other sites

Ohhh I didn't see it. My bad... Thanks Carl. 

@GreenSock Could I leave it as suggestion for next releases? Also the feature to lerp sections instead of the whole container.

 

😊

Link to comment
Share on other sites

Sections is coming Victor! :)

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