Jump to content
Search Community

Using GSAP to simulate position sticky on element that cannot be sticky due to parents overflow.

RickBGove test
Moderator Tag

Recommended Posts

It's a basic issue of position: stickynot working due the parent element have overflow set. 

We would have to rewrite a huge amount of code to move the header outside of the overflow parent...

 

I have a little experience with GSAP, and I know it can do amazing things... 

 

What I need to know is if we can use GSAP to make the header sticky gracefully... Thank you...

See the Pen KKbaNyr by Richard-Gove (@Richard-Gove) on CodePen

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