Jump to content
Search Community

Animation START not correct

Vasyl Shvets test
Moderator Tag

Recommended Posts

I'm not sure I understand your question correctly, but it looks to me like you're animating the parent element vertically which throws off the calculations of those child element ScrollTriggers. Remember, ScrollTrigger pre-calculates exactly where things will hit the viewport at the correct spots so that performance is maximized (rather than constantly checking as you scroll to do a getBoundingClientRect() or something).

 

In general, it's a bad idea to animate the container vertically, but if you must then you'll need to factor that movement into your start/end values. For example, if you're animating the parent up by 100px, you'd make the child start positions 100px greater than they'd normally be. 

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