Jump to content
GreenSock

webflow.be

Multiple pinned scrolltriggers

Moderator Tag
Go to solution Solved by mvaneijgen,

Recommended Posts

Hello,
I need to be able to activate different scroll triggers on 1 page, whereby the left side always remains pinned.
I've come a way, but I can't do the following things:
- the end parameter should be calculated based on the height of the right side in such a way that the pinned part stops nicely at the end
- the 2nd section should work the same way, but it doesn't. I suspect this is because the ".item--fixed" pin is incorrect. Can you point it to the parent element? (section)

 

Thx!

See the Pen NWLxrRp by wouterverstuyf (@wouterverstuyf) on CodePen

Link to comment
Share on other sites

You need to scope your .left to the section you're in. Right now you tell it "pin all elements on the page with the class .left", but you want it to say "pin all elements with the class .left in the current section" 

 

See the Pen eYLJzxx by mvaneijgen (@mvaneijgen) on CodePen

  • Like 1
Link to comment
Share on other sites

@mvaneijgen

Thx! I knew I had to target the current section, but didn't know how to do that, so here it is.
Do you also know what the correct value is for bottom, so that the pinned text stops at the end of the section.

Thx dude!

Link to comment
Share on other sites

  • Solution

I would recommend enabling the markers to see where they are positioned and then lining them up where you want them.

 

See the Pen eYLJzxx by mvaneijgen (@mvaneijgen) on CodePen

  • Like 2
Link to comment
Share on other sites

Yes, by playing with the end parameters I was able to determine the position.

Thx!

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