CSS scale
The CSS scale() function is used to scale an element by a specified factor. This can be useful for making an element appear larger or smaller on the webpage.
The syntax for the scale() function is as follows:
transform: scale(x, y);
Where x and y are the scaling factors for the width and height of the element, respectively. A value of 1 represents the original size, while a value less than 1 will make the element smaller, and a value greater than 1 will make it larger.
Let's see an example of how the scale() function works:
In the example above, the element is scaled by a factor of 2 for the width and 1.5 for the height. As a result, the element appears larger horizontally than vertically.