Jump to content
Search Community

onStart and onComplete of each iteration

chevohin test
Moderator Tag

Recommended Posts

Hi guys,

could you please explain me how it works?

I have a jumping ball. I want some functions to be called on start and at the end of each jump.

If I use onStart() and onComplete() methods, it runs start function only once and doesn't run finish function at all.

I guess, onStart() and onComplete() methods mean the start and the end of the whole timeline, but not every iteration.

What is the best way to call functions on start and at the end of each iteration?

See the Pen dypbYYE by chevohin (@chevohin) on CodePen

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