Jump to content


Pin Spacer Height Issue in Horizontal Scroll

Moderator Tag

Recommended Posts

I need to reduce the pin spacing from Top And Bottom. Means I don't want full height for horizontal scroll. For more reference please see the attached screenhot.

unnamed (2).png

See the Pen LYgrLvJ by phpcoders (@phpcoders) on CodePen

Link to comment
Share on other sites

Hi @NImesh and welcome to the GreenSock forums!


This might not be the easiest thing to achieve via code. I would try creating the horizontal content, the elements before and after that in the same wrapper and pin that wrapper based on the position of the horizontal container. Something like this:

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


Hopefully this helps.

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.