const matrix = new DOMMatrix(); // create a matrix
console.log(matrix.toString()); // original value
// "matrix(1, 0, 0, 1, 0, 0)"
console.log(matrix.skewY(14).toString()); // skew along y-axis
// "matrix(1, -0.25, 0, 1, 0, 0)"
console.log(matrix.toString()); // original unchanged
// "matrix(1, 0, 0, 1, 0, 0)"DOMMatrixReadOnly: skewY() method / notebook
DOMMatrixReadOnly: skewY() method
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.