Jump to content
Search Community

Pin spacing is not working when pinning the same element

tobimori test
Moderator Tag

Go to solution Solved by tobimori,

Recommended Posts

I have multiple horizontal scroll sections on my page, that do not take up 100vh, therefore, I'm pinning the parent element that wraps all sections.

Sadly, this breaks the pin spacing calculation, as they apparently do not take triggers using the same pin element to account. (It works perfectly fine when not pinning the parent container, but I need to do that for visual reasons)

 

Is there a way to fix this? I attached a CodePen Demo that shows the ScrollTrigger of the second horizontal scroll section starts too early.

See the Pen MWGRybO by tobimori (@tobimori) 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...