Jump to content
Search Community

GSAP ScrollTrigger: Start and end values being calculated oddly

SteveS test
Moderator Tag

Recommended Posts

I have several elements stacked vertically in a column. By default, there is no spacing between them. For each of them, I am applying a timeline where they tween FROM a scale of 0.8 to normal, and then TO a scale of 0.8 again.

For each timeline, I am applying a scrolltrigger which scrubs.

For some reason, the scrollTrigger uses the "top" position of the element when it is scaled down, which introduces space between when one scrollTrigger ends and the next begins. How can I get it so that the scrollTrigger recognizes the start: "top..." as referring to the top of the element before it has the "from" tween applied?

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