The skew
function can be used to distort an element by a certain angle.
The effect is similar to grabbing opposite corners of the element
and pulling them.
The skew
function takes either one or two values. When a single value
is provided, it skews the element along X-axis. When two values are provided, the first value specifies
the skewing in X direction while the second value specifies the skewing in Y direction.
We can also use skewX
and skewY
functions to skew an element along a specific direction.