CSS Attributes Index CSS Transforms
Defines a 2D transformation matrix.
{ transform: matrix(number(4),number(2) } }
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( ) ).
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.
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) |
 |
 |
brightness contrast hue-rotate