Share Posted June 22, 2015 I am using tweenmax.js for rotating elements , then when I hover currently it is pause the rotation then I need the value of roationY. How can I get the value? Link to comment Share on other sites More sharing options...
Share Posted June 22, 2015 Hi binnilal pls try this : var target = $("#myDiv"); TweenMax.to(target,20,{rotationY:360}); target.mouseover(function(){ console.log(target[0]._gsTransform.rotationY) }); and pls check out CSSplugin Doc : http://greensock.com/docs/#/HTML5/Plugins/CSSPlugin/ All transforms are cached in a _gsTransform object attached to the element, so you can tween individual properties without worrying that they'll be lost. You don't need to define all of the transform properties on every tween - only the ones you want to animate. You can read the transform-related values anytime, like element._gsTransform.scaleX 2 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now