CSS skewY() Function
Example
Use skewY() to skew several <div> elements along the y-axis, by a given angle:
#myDiv1 {
transform: skewY(15deg);
}
#myDiv2 {
transform: skewY(30deg);
}
#myDiv3 {
transform: skewY(-25deg);
}
Try it Yourself »
More "Try it Yourself" examples below.
Definition and Usage
The CSS skewY()
function is used to skew an
element along the y-axis, by the given angle.
The skewY()
function is used within the
transform property.
Version: | CSS Transforms Module Level 1 |
---|
Browser Support
The numbers in the table specify the first browser version that fully supports the function.
Function | |||||
---|---|---|---|---|---|
skewY() | 1 | 12 | 3.5 | 3.1 | 10.5 |
CSS Syntax
skewY(a)
Value | Description |
---|---|
a | Required. An angle. Specifies the skew along the y-axis |
More Examples
Example
Use skewY() to skew images along the y-axis, by a given angle:
#img1 {
transform: skewY(10deg);
}
#img2 {
transform:
skewY(-10deg);
}
#img3 {
transform: skewY(5deg);
}
Try it Yourself »
Related Pages
CSS reference: CSS transform property.
CSS reference: CSS skew() function.
CSS reference: CSS skewX() function.
CSS tutorial: CSS 2D transforms.