Share Posted September 30, 2014 Hello, Is it possible to call a function exactly when TweenMax animation starts playing in reverse? I would like something similar with onReverseComplete but called when the Tween starts playing in reverese. Thank you. Alin Link to comment Share on other sites More sharing options...
Share Posted September 30, 2014 Do you want a callback / event to fire every time you call myTween.reverse()? If so, that functionality is not in the API so you would have to manually invoke the function yourself. Or do you want to know how to call a function when a repeating / yoyo-ing TweenMax repeats (starts playing backwards on its own)? In that case onRepeat would work. There is another more challenging use case though where a user might want to know when a nested tween in a timeline appears to be playing in reverse because its parent is reversed. If you can share some sample code (preferably in a CodePen) or offer more details to exactly what you are trying to do we can better assist you. Right now there are a few ways to interpret your question, which is no fault of your own. Link to comment Share on other sites More sharing options...
Author Share Posted October 1, 2014 The animation that I am talking about is performed when people scroll the page (using ScrollScene class from ScrollMagic). I think my issue is related to ScrollScene, not to TweenMax. Thank you. Alin 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