Jump to content
Search Community

Layered pinning with Scrolltrigger and long content inside delaying the next panel to show up

Checkout test
Moderator Tag

Recommended Posts

Hi all,

 

So I've created a Scrolltrigger that listens to the botom of a panel so you can actually scroll through the entire content of a panel.

Now once you're at the bottom of one panel, the next one comes in too quick which ends up in missing the animation happening at the bottom of a panel. Can I add something like a scrolling delay at the bottom of a panel where you have to scroll further before the next panel comes in?

 

Current code looks like this:

 

gsap.utils.toArray(".o-scroll-section").forEach((panel, i) => {
        ScrollTrigger.create({
            trigger: panel,
            start: "bottom bottom", 
            pin: true, 
            pinSpacing: false ,
           
        });
    });

Hopefully someone has the answer.

 

Thanks!

Edited by Checkout
Question vhanged
Link to comment
Share on other sites

  • Checkout changed the title to Layered pinning with Scrolltrigger and long content inside delaying the next panel to show up

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