The
skew(x,y)
function specifies a skew along the X and Y axes.
The x specifies the skew on the X axis, and the y specifies the skew on the Y axis. If the second parameter is omitted, the skew will only occur on the X axis:
The syntax for Skewing an element: This defines a 2D skew transformation along the X axis and the Y axis.
skewX(angle) | This defines a 2D skew transformation along the X axis. |
skewY(angle) | This defines a 2D skew transformation along the Y axis |
snippet
-webkit-transform: skew(15deg, 4deg);
-moz-transform: skew(15deg, 4deg);
-ms-transform: skew(15deg, 4deg);
-o-transform: skew(15deg, 4deg);
transform: skew(15deg, 4deg);