If the second parameter is not specified, it has a zero value. So, the following example skews the
element 20 degrees along the X-axis:
Example
div {
transform: skew(20deg);
}
Try it Yourself »
The matrix() Method
The matrix() method combines all the 2D transform methods into one.
The matrix() method take six parameters, containing mathematic functions, which allows you to rotate, scale, move (translate), and skew elements.
The parameters are as follow: matrix(scaleX(), skewY(), skewX(), scaleY(), translateX(), translateY())
Example
div {
transform: matrix(1, -0.3, 0, 1, 0, 0);
}
Try it Yourself »
Начало формы
Test Yourself With Exercises
Exercise:
With the transform property, move the
element 100px to the right, and 200px down.
This is a div