Jump to content
Search Community

Several horizontal scrolls in one pined section

Solbeg test
Moderator Tag

Recommended Posts

Hi,

 

The problem here seems to be the element you're pinning more than anything else. I would recommend you to pin the farthest possible parent in order to avoid layout issues. Pinning is a tricky situation and when the element is pinned it creates some padding in order to accommodate the pin space required.

 

I forked your codepen and pinned the columnar elements instead of the element you were pinning:

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

 

Hopefully this helps.

Happy Tweening!

Link to comment
Share on other sites

Hi,

 

I understand, but that is what actually causing the issues in your case. First always use markers when developing or debugging, if you do you would've seen the problem you have before posting the thread here in the forums:

AnhiRaP.png

In the image you can see that the start point of the second instance is before the end point of the first instance, which will pin an element that is already pinned. That's causing all the problems here.

 

This is the best I can come up with right now:

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

 

Unfortunately we don't have the time resources to provide custom solutions to all our users. Maybe there is better and/or simpler way to do this, but hopefully is enough to help with your project.

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