MDN self-hosted library · e01.org

CSSRotate: y property

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

js
const rotate = new CSSRotate(1, 1, 0, CSS.deg(45));

console.log(rotate.y.value); // 1

rotate.y = 0;
console.log(rotate.y); // CSSUnitValue {value: 0, unit: "number"}