CSS matrix() Function (original) (raw)
Last Updated : 07 Jun, 2023
The matrix() function is an inbuilt function which is used to create a homogeneous 2D transformation matrix.
Syntax:
matrix( a, b, c, d, tx, ty )
Parameters: This function accepts six parameters as mentioned above and described below:
- a, b, c, d: These parameters are used to describe the linear transformation.
- tx: This parameter is used to describe the linear translation on x-axis.
- ty: This parameter is used to describe the linear translation on y-axis.
Below example illustrates the matrix() function in CSS:
Example:
html `
CSS matrix() function