Jump to content
Search Community

Sticky Header stopped working with SmoothScroller

jimmerxx test
Moderator Tag

Recommended Posts

Hi @jimmerxx welcome to the forum and thanks for being a Club Greensock member 🎉

 

Check out the following post

 

And from the docs https://greensock.com/docs/v3/Plugins/ScrollSmoother same goes for sticky elements. 

 

  • position: fixed should be outside the wrapper - since the content has a CSS transformapplied, browsers create a new containing block and that means position: fixed elements will be fixed to the content rather than the viewport. That's not a bug - it's just how CSS/browsers work. You can use ScrollTrigger pinning instead or you could put any position: fixed elements OUTSIDE the wrapper/content.

Hope it helps and happy tweening! 

 

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