Jump to content


is there any a quick method to get the current property value of Tween?

Recommended Posts

i want get the dom's  current Y value ,in every onUpdate


TweenMax.fromTo( dom, 5 , { y:0 } , { y:400, onUpdate:function(){

     console.log(this.vars.y)  ?

     console.log(this.target.y)  ?


Link to comment
Share on other sites

Hi ice-frog  :)


check this :

console.log(this.target[0]._gsTransform.y) // target current y value
console.log(this.vars.startAt.y) // tween start y value
console.log(this.vars.css.y) // tween end y value
  • 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.