matrix() function
Specifies a 2-D transformation in the form of a transformation matrix of six values (a through f).
![]() ![]() |
Syntax
matrix
(
<number>
,
<number>
,
<number>
,
<number>
,
<number>
,
<number>
)
Parameters
- number
-
A matrix value.
Standards information
- CSS Transforms Module, Level 3, Section 13.1
Remarks
A 2-D 3×2 matrix with six parameters a, b, c, d, e, and f is equivalent to the following transformation matrix:
For more information about transformation matrices, see Mathematical Description of Transform Functions, in the CSS3 Transforms specification.
Requirements
See also
- Transform Functions
- Mathematical Description of Transform Functions
- Direct3D: Matrices
- Hands On: 2D Transforms
Show:

