Jump to content
Search Community

Second image pin not working

LauraS test
Moderator Tag

Go to solution Solved by GreenSock,

Recommended Posts

  • Solution

That's just because you were feeding in a number which is interpreted as an absolute scroll number (from the very top). So I think you meant to do this: 

end: () => "+=" + (window.innerHeight * 2)

I'm using a function-based value so that it updates automatically if the viewport resizes. And the "+=" means to interpret it as relative, so that many pixels PAST where the start of that ScrollTrigger is. 

 

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