I've got different elements each with a different transform property,
.one{transform: rotateY(10deg)}
.two{transform: rotateY(20deg)}
//etc.
and I'm tryng to add a translateZ (through javascript) to these transform properties.
As expected adding such a value automatically overrides the pre-existing property .
Is there an easy way to get this done?
(as a workaround I thought about using transform-origin but I'd rather avoid that if it's possible)
transforminline overrides the previoustransform, you need to set one transform that contains both the rotate and the translate, but getting the rotate values in javascript isn't easy either, astransformreturns a matrix.