Jump to content


killTweensOf issue

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 have an IE8 alpha issue with an animation I'm working on.

So I wanted to use killTweensOf() similiarly to how the doc's recommended to use it:


TweenMax.killTweensOf(myObject, {opacity:true, x:true});



my code:

tl_demo = new TimelineMax({paused: true});
tl_demo.to( $(".demo"), 1, { alpha:1, ease:Power2.easeOut })
.from( $(".demo"), 1.2, { left:"300px", ease:Power2.easeInOut});


var el = document.createElement('canvas');
if (el.getContext && el.getContext('2d')) {    TimelineMax.killTweensOf(tl_demo, {opacity:true); }



Im using the latest version of gsap, but I haven't been successful at killing the opacity tween part of my animation.





works fine.



Any help?



Link to comment
Share on other sites

The problem with what you are trying to do is that TimelineMax does not have a killTweensOf() method.


There is a kill() method which you can read more about here: http://api.greensock.com/js/com/greensock/TimelineMax.html

It has quite a few options.


Right now using TweenMax.killTweensOf() is perfectly fine too.

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.