I have an element 3D transformed something like this:
.foo {
transform: rotateX(-30deg) rotateY(35deg);
}
Now I want to get these values via javascript. It's easy to get the 3D matrix:
var matrix = $('.foo').css('transform');
// return:
// matrix3d(0.819152, -0.286788, -0.496732, 0, 0, 0.866025, -0.5, 0, 0.573576, 0.409576, 0.709406, 0, 0, 0, 0, 1)
But is it possible to calculate CSS like values -30 and 35 with that matrix? I just found ways to do this for 2D transforms.