kauls Posted March 26, 2023 Share Posted March 26, 2023 The required flow of animation is -- 1. First, it should show only section 1. 2. Then, on a little scroll (even 1px scroll), element 1 should animate to the top and once element 1 reaches the top, section 2 should fade in. 3. Then, on a little scroll (even 1px scroll), element 2 should animate to the right end and once element 2 reaches the right end, section 3 should fade in. 4. Then, on a little scroll (even 1px scroll), element 2 should animate to the left end and once element 2 reaches the left end, section 3 should fade in. I can see I can achieve a similar effect when the scrub is true, but without the scrub, it is a bit difficult for me, Please help. See the Pen GRXzMLQ by kauls (@kauls) on CodePen Link to comment Share on other sites More sharing options...
Solution GreenSock Posted March 26, 2023 Solution Share Posted March 26, 2023 Based on your description, it sounds like Observer plugin might be a much better fit than ScrollTrigger. Here's a demo from the docs: See the Pen XWzRraJ by GreenSock (@GreenSock) on CodePen 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