scale

The scale CSS function specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it takes a value equal to the first.

Syntax

CSS

scale()

Values

<scale()> =
    scale(
        [ <number> | <percentage> ]#{1,2}
    )
<number>

An integer or zero or more decimal digits followed by a dot (.) followed by one or more decimal digits. The first character may be preceded by a sign (- or +). The last character may be succeeded by an exponent (e or E) and an integer.

<percentage>

Specifies the percentage using a number followed by a percent sign (%).

Examples

1 · number

2 · percentage

3 · JS

HomeMenu