Jump to content
Search Community

killing tweens

Popinjay 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

I seem to be having difficulty killing tween with timeline max.

 

    myTimeline.fromTo(glb[1], gtime, {per:.0},{per:(1+totalDelays), ease:Cubic.easeIn, onUpdate:updateTween, onUpdateParams:[glb[1], fade], onComplete:finishedFade});

 

myTimeline.killTweensOf(glb[1]);

 

The kill function returns a "possibly unidentified method" error, even though setting up the tween works.

 

Obviously I don't actually want to kill the tween as soon as I make it.  This was just to show it wasn't working--I wanted to kill it someplace else in the program---but it doesn't even work immediately after creating the tween.

 

Sorry if this is a newb question.

 

Pop

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