Implements the Interpolation of Transforms logic from the w3c spec. When the transform operations don't match (different length or different operations) the transform operations are converted to a 3d matrix, and a decomposed matrix interpolation is applied instead, courtesy of the matrix3d package.
For application to dom elements, the transform list can either be composed to a matrix, or stringified to a combined transform list.
Usage
var Transform3d = require('transform3d');// First transformvar transform1 = new Transform3d;transform1.rotate(45).scale(2);// applies Transform3d::toString()element1.style.WebkitTransform = transform1;// applies Matrix3d::toString(), should have the same exact effectelement1.style.WebkitTransform = transform1.compose();// Second transformvar transform2 = new Transform3d;transform2.rotate(480).scale(1);// applies Transform3d::toString()element2.style.WebkitTransform = transform2;
// applies Matrix3d::toString(), should have the same exact effect