Jump to content
Search Community

onUpdateParams how to get tween itself GSAP v3

Maor Zigel test
Moderator Tag

Recommended Posts

Hi,

 

How do I fetch the Tween itself into the onUpdate function?

in GSAP 2.x it was via the "{self}" like so:

TweenLite.to(element, { onUpdateParams: ["{self}"], onUpdate: (tween) => { console.log(tween) } } );

but in the GSAP 3.x version via npm install gsap I can't get the tween itslef... I get the string '{self}' instead...

 

Please help, and Happy Tweening!!!

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