Jump to content
Search Community

ScrollTrigger.batch child animations and each batch waiting for the previous one

SkyFall test
Moderator Tag

Go to solution Solved by GreenSock,

Recommended Posts

Hi there! 
I am using this pen from GreenSock as a reference for displaying blog posts:

 

See the Pen GRjWxaJ by GreenSock (@GreenSock) on CodePen

 

Now I am trying to modify the code so that if you scroll down the page, the batch animation from the new row will not start until the previous one is finished. Thanks to this forum I found a solution from ZachSaucier (pen below).

 

It looks like it is using a condition with if(tl && tl.isActive()). I am trying to combine these two codes for hours now but I am failing miserably due to my limited JS knowledge. Any help would be much appreciated. :)

See the Pen LYZvJJX by GreenSock (@GreenSock) on CodePen

Link to comment
Share on other sites

  • Solution

I'm lost - your demo is the second one, the one from Zach that already worked, right? So you already have exactly what you're asking for in his original CodePen(?)

 

If you want to apply that logic to your FIRST CodePen, here's what I assume you were looking for: 

See the Pen vYrZXKV?editors=0010 by GreenSock (@GreenSock) on CodePen

 

Better? 

  • Like 1
  • Thanks 1
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...