Jump to content
Search Community

Question - 2 overlapping Scrolltriggers with scrub, each with it's own pin - possible?

newguy123 test
Moderator Tag

Recommended Posts

Hi

 

I have 2 scrolltriggers with image sequence, currently the 2nd one only start scrubbing, when the 1st one finishes. Each one is pinned with text scrolling over it in a timeline.

 

However, is it possible to shift UP the 2nd one, so it fades in over the 1st one, while each maintains its own pinning?

 

In my image it probably illustrates it better. The one on the left, is how I CURRENTLY have it. The 1st blue Pin represents the full browser window. As the blue scrolls to the end, the 2nd scrolltrigger, the green one starts and is pinned in its green section. However, I want to change it so that things work more like the DESIRED image on the right, ie, when I get to almost the last bit of the blue scrolltrigger, the green one fades in, is pinned, and scrubs its context. ie.

The problem I'm having is how to work out how to move the 2nd scrolltrigger up a bit, so it starts over the previous one, instead of after it.

image.thumb.png.ab60a89917e15414cb96e8766017a874.png

Link to comment
Share on other sites

Hi,

 

As Toso mentions without a minimal demo there is not a lot we can do, but this mostly could biol down to layout HTML and CSS. My first try would be to have the elements positioned absolutely on top of each other, give an autoAlpha: 0 to all except the first one and just pin the parent element.

 

Or maybe something like this:

See the Pen LYvEYGj by GreenSock (@GreenSock) on CodePen

 

Hopefully this helps.

Happy Tweening!

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