The skew() function is an inbuilt function which is used to transform an element in the 2D plane. Skew an element means to pick a point and push or pull it in different directions.
skew( ax )
skew( ax, ay )
- ax: This parameter holds the angle representing the horizontal axis to distort an element.
- ay: This parameter holds the angle representing the vertical axis to distort an element. If it is not defined then it takes the default value zero. It means completely skew in x direction.
Below examples illustrate the skew() function in CSS:
Supported Browsers: The browsers supported by skew() function are listed below:
- Google Chrome
- Internet Explorer
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.