Jump to content
Search Community

ScrollSmoother: Update height

coderesolution test
Moderator Tag

Go to solution Solved by PointC,

Recommended Posts

Hello,

 

I have SmoothScroller enabled and working, however, in many cases the height of the page will change by content such accordions, tabs, carousels, etc.

 

Is there a way to manually tell SmoothScroller to update/recalculate the page height, like it does on screen resize?

I am looking for an equivalent to LocomotiveScroll's `update()` method (https://github.com/locomotivemtl/locomotive-scroll#instance-methods).

 

I have been reading the docs (https://greensock.com/docs/v3/Plugins/ScrollSmoother) but haven't seen a solution listed.

 

Thanks so much!

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