Jump to content
Search Community

TweenMax missing killChildTweensOf()

djkencloud 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

Hi, I went to call this function today... killChildTweensOf() in TweenMax JS but it doesn't seem to exist. Its in the documentation.

 

I couldn't see anything on the forums so I posted. I have been known to miss things on a regular basis, so if I'm being a bit thick, please let me know.

 

While I'm here, I will just check I'm wanting to use it the correct way. I have a view in backbone with a html template getting created off the el property. I'm wanting to call killChildTweensOf($(this.el)). to kill any tweens on any nested Dom element on the view. Will this work?

 

Cheers...

 

Ken.

Link to comment
Share on other sites

Sorry... this is my fault, its not in the documentation, I've got my as/js windows mixed up... please delete...

 

My question is now, with the above case scenario, can I easily destroy nested tweens of my el property/dom element, without referencing them specifically, using a method that actually exists in Tweenmax JS.

 

K.

Link to comment
Share on other sites

Your wish is my command :) I just uploaded a new JavaScript version of TweenMax that includes a new killChildTweensOf() method that does pretty much exactly what you wanted. Please take a peek and let me know if it works well for you.

 

http://www.greensock.com/v12/ (or if you're a Club GreenSock member, get the latest bonus zip in your GreenSock account at https://www.greensock.com/account/)

Link to comment
Share on other sites

Thanks, that's fantastic. I'll give it a whirl today and let you know how I go. (And I'll renew my individual membership, I noticed it lapsed).

 

You've floored me with your generosity, I wasn't expecting that at all.

 

As we say in Australia 'cheers mate, your a bloody legend !'

 

K.

  • Like 1
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...