CSSSkewY: ay property
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Want more browser support for this feature? Tell us why.
Note: This feature is available in Web Workers.
The ay property of the CSSSkewY interface represents the skew angle along the y-axis.
The element's horizontal edges are tilted by this angle.
A positive angle moves the right side down relative to the left side, and a negative angle moves it up.
Value
A CSSNumericValue that is an <angle> value, such as CSS.deg(20) or CSS.turn(0.1).
Examples
>Reading and setting the ay angle
This example creates a skew, logs its ay value, and then changes it to a positive angle.
js
const skewY = new CSSSkewY(CSS.deg(-15));
console.log(skewY.ay); // CSSUnitValue {value: -15, unit: "deg"}
skewY.ay = CSS.deg(25);
console.log(skewY.toString()); // "skewY(25deg)"
The new ay value of 25deg would move the right side of an element down relative to its left side.
Specifications
| Specification |
|---|
| CSS Typed OM Level 1> # dom-cssskewy-ay> |