Suppose I have a css3 conversion style:
img { -webkit-transform:rotate(10deg) translate(100px,20px); -moz-transform:rotate(10deg) translate(100px,20px); }
then I use jquery get it style:
console.log($('#clone').css('-moz-transform'));
he returns me only the series number:
matrix(0.984808, 0.173648, -0.173648, 0.984808, 95.0078px, 37.061px)
Is there a js plugin that can turn a matrix number into a transform? Or go to the other side?
source share