Jump to content
Search Community

ScrollTrigger adding "pin-spacer" on other pages without scrollTrigger imported

Jncocontrol test
Moderator Tag

Recommended Posts

Hi, i'm making a project (I don't even know what i'm doing to be honest....) but as I switch between routes my index has gsap and ScrollTrigger on it and another route doesn't have that. as I move from the index to fashion I notice it applies the pin-spacer on my page.

I tried to do a little trickery by just giving the pin-spacer a display of none. but that break the entire thing.

Anyhow, I've attached my project. Just 'npm i' and go to fashion page, back to index, and back to fashion.

https://mega.nz/file/5YYEibiJ#athvQYNm9NTqMtXuH3rxZl_2ASfk_o23l4n5iE533Gs

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