CSS scale() Function (original) (raw)

Last Updated : 30 Aug, 2024

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.

**Syntax:

scale( sx )

or

scale( sx, sy )

**Parameters:

Below examples illustrate the **scale() function in CSS:

**Example 1:

html `

CSS scale() function

GeeksforGeeks

CSS scale() function



GeeksforGeeks logo

`

**Output:

**Example 2:

html `

CSS scale() function

GeeksforGeeks

CSS scale() function

<div class="GFG">Welcome to GeeksforGeeks</div> 

`

**Output:

**Supported Browsers: The browsers supported by **scale() function are listed below:

Similar Reads