Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Daniel Hult

Overlapping timeline with ScrollMagic

Recommended Posts

Hi!

How do I prevent the text at the bottom from overlapping the previous section with the setPin?
I thought setPin would stick the current section and not allow other content to scroll over it.

See the Pen NZNGwP by daniel-hult (@daniel-hult) on CodePen

Link to comment
Share on other sites

Hi @Daniel Hult,

 

Welcome to the forum and thanks for joining Club GreenSock. ScrollMagic isn't a GreenSock product, but I'll answer this for you.

 

You're pinning the .trigger2 div which is a child of the middle section. If you want the next section to wait for the pin, you need to pin the parent section of trigger2.

 

See the Pen jjqqLX by PointC (@PointC) on CodePen

 

ScrollMagic also has a support area here:

https://github.com/janpaepke/ScrollMagic/issues

 

And premium support here:

https://support.scrollmagic.io/

 

Happy tweening and welcome aboard.

:)

 

 

 

  • Like 1
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.
×