The scale() function is an inbuilt function which is used to resize the element in 2D plane. It scales the elements in horizontal and vertical directions.
scale( sx )
scale( sx, sy )
- sx: It resizes the elements in horizontal plane.
- sy: It resizes the elements in vertical plane. If value of sy is not defined then the resize the element sx in both direction (horizontal and vertical).
Below examples illustrate the scale() function in CSS:
Supported Browsers: The browsers supported by scale() 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.