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:

Below example illustrates the matrix() function in CSS:

Example:

html `

CSS matrix() function