Jump to content


Getting the right rotation values after pause() or kill()

Recommended Posts

Although I only animate rotationY the rotationX value I am getting back from getTransform (CSSPlugin) is jumping from 0deg to 180deg and back. Why is this happening? Is there no way to get the right deg values from matrix3d?


Also is there a way to animate rotationY/X using TweenMax without matrix3d?

See the Pen QjVjbj by anon (@anon) on CodePen

Link to comment
Share on other sites

The reason you are seeing matrix3d() is due to using rotationX or/and rotationY which becomes part of the matrix3d() even if force3D is false. If you were to use just rotation it would just use matrix. GreenSock's Jack could explain more on the inner workings of this behavior.

  • Like 1
Link to comment
Share on other sites

Please use Diaco's suggestion. CSSPlugin._internals.getTransform(cardE.get(0)); isn't intended for public use or support. 


All 3D transforms use matrix3d() for performance benefits.

  • Like 2
Link to comment
Share on other sites

nice! thanks for the quick response guys :)

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.