Jump to content
GreenSock

ud907

Scroll Trigger pinning height problem

Recommended Posts

Hi there. 

As you can see on my Codepen. I wanted to pin all of my sections but without having pinSpacing. but unfortunately the spacing gets broken and makes it worst. Can you please help.

See the Pen rNeyqGm by umanga (@umanga) on CodePen

Link to comment
Share on other sites

Hi, you are saying that you are trying to pin all of your sections, but you are only pinning the second one, where you setting pinSpacing: false that is why the third section is overlapping the second one.

 

In other words the code is doing what it should.

 

See the Pen WNwpLNJ by ihatetomatoes (@ihatetomatoes) on CodePen

 

Checkout the above demo, I have created a loop for the two sections and also added overflow-x to the body because your images are causing horizontal scrollbar to appear.

 

Hope that helps.

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