Jump to content
Search Community

Pin is working, but nothing is scrolling over it

LSchneiderman test
Moderator Tag

Go to solution Solved by GreenSock,

Recommended Posts

  • Solution

By default, it'll add pinSpacing to push things below it further down so that they don't overlap, but you can just set pinSpacing: false.

 

You've got several CSS-related issues going on too that cause the text not to show up on top of the image and your page isn't scrollable enough to even see the text adequately, plus if you've got something position: fixed (the default pinning behavior), the browser can't clip it with overflow: hidden of its container but I imagine this might be close to what you're looking for: 

See the Pen bGmpdMW by GreenSock (@GreenSock) on CodePen

 

There's probably an even cleaner way to set things up. I wonder if you're looking for something like https://developer.mozilla.org/en-US/docs/Web/CSS/background-attachment

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