SteveS Posted June 4, 2021 Share Posted June 4, 2021 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 More sharing options...
Carl Posted June 4, 2021 Share Posted June 4, 2021 Hi a good rule to follow is that you don’t want to animate the trigger element. Use a parent element that doesn’t scale. check out my demos in this thread. 4 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now