Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
nullhook

How to find out if all elements has completed their animation?

Recommended Posts

I have a bunch of images that moves the Y value continuously and while they're moving up I'm turning their visibility on/off. 

I'm calculating respective image's y position to ensure they only show within 20-80% of the viewport. However, this isn't accurate. Not sure why?

Is there a way to find out if all images have been turned on/off? (I keep a data flag for this)
Is there a way to find out if last image is being toggled on?

 Codepen: 

See the Pen wvaOMRZ?editors=0010 by taher-space (@taher-space) on CodePen

Share this post


Link to post
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.

×