asp.net.ph

Skip Navigation Links

Matrix Transform Effect

CSS Attributes Index   CSS Transforms


Defines a 2D transformation matrix.

Syntax:
{ transform: matrix(number(4),number(2) } }

Possible Values

The matrix( ) function is specified with six values.

a b c d Positive floating-point number describing the linear transformation.
tx ty Positive floating-point number describing the translation to apply.

The values represent the following functions: matrix( scaleX( ), skewY( ), skewX( ), scaleY( ), translateX( ), translateY( ) ).

Remarks:

The matrix( ) CSS function defines a homogeneous 2D transformation matrix.

The passed parameter defines the size of adjacent units to blend, thereby setting the amount of deviation from the element’s default sharpness level.

A value of 0 leaves the input unchanged, while higher values increase the effect.

Percentage or negative values ( < 0 ) are ignored and render the element unchanged.

NOTE: Percentage values are invalid.

Example

Blur with value = 1 applied with different length units.

transform: matrix(1mm)
transform: matrix(1pc)
transform: matrix(1pt)
transform: matrix(1px)
transform: matrix(1em)
transform: matrix(1ex)

Blur with percentage or negative value. Image is unchanged.

transform: matrix(20%)
transform: matrix(-1px)
See Also

brightness   contrast   hue-rotate



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note