The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › CSS transform Matrix in %
Can CSS tranform: matrix() have % values, coz it works with transform:translate(), but when i apply a percent value in a matrix function, the whole transform gets invalid. Any code snippet would be a plus.
This works:
transform: translate(50%, 50%);
But this is shown invalid:
transform: matrix(1, 0, 0, 1, 50%, 50%);
Thanks
Does it now owrk in all broswers or just a specific one?
transform: matrix(1,0,0,1,0,-50px)
also isn’t supported.
What I guess is that no ‘units’ are supported in matrix() function. Am I right?
I have tested on:
https://codepen.io/shub1427/pen/zBmNNP