Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
kez1304

An event (onComplete, onRepeat, etc.) that fires on a yoyo based repeat?

Recommended Posts

Hi guys,

 

Just scratching my head at this.

 

As you can see in my codepen with your console open, all the on[EVENT]s fire, except onRepeat.

 

I'm in need of having an event fire at the end of the repeatDelay on the timeline, but as it stands, I can't find one.

 

Does anyone have any idea how I can find out (and call a function) at the exact moment the text starts to disappear again?

 

 

Many thanks!

 

 

EDIT: Just a note, removing the yoyo and repeatDelay, still means that the onRepeat event doesn't fire... am I missing something obvious here?

See the Pen BjOJee?editors=0010 by anon (@anon) on CodePen

Edited by kez1304
Link to post
Share on other sites

D'oh!!

 

It occurs to me now, that onRepeat will have to be called on the TimelineMax itself. The Tween in question isn't aware that it's being reversed.

 

 

Sorry guys!

 

Blonde moment!

  • Like 1
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×