Jump to content
Search Community

How to emulate "tween.complete(true)"?

basyg test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Thank you for the answer!

I tested "tween.totalProgress(1)" and found "tween.repeat(0)" is redundat.

 

But "complete(skipRender:Boolean = false)" has the argument "skipRender". How to repeat the behavior of "skipRender true"?

I can't provide an example because didn't find the old js version of gsap.

I found only the ActionScript 3 source https://github.com/orta/virtualapps/blob/master/src/gs/TweenLite.as

It seems "complete(true)" completes tweens without setting tweens to a finish state.

Link to comment
Share on other sites

Hi @basyg. Could you explain a practical use case for this? I'm struggling to think of one. If, for example, you just want the onComplete to be called (without actually rendering the tween values at all), why not just call the onComplete yourself? Maybe if you describe your scenario better we could offer a suggestion. 

Link to comment
Share on other sites

Hello!

 

I don't know much because I'm just refactoring an old code to the latest gsap.

I think there is a need to stop/kill tweens (animation of characters) at they middle state but with firing complete handlers.

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