CSSMatrixComponent: CSSMatrixComponent() constructor

The CSSMatrixComponent() constructor creates a new CSSMatrixComponent object representing the matrix() and matrix3d() values of the individual transform property in CSS.

Syntax

js
new CSSMatrixComponent(matrix)
new CSSMatrixComponent(matrix, options)

Parameters

matrix

A 2d or 3d matrix.

Examples

To do

Specifications

Specification
CSS Typed OM Level 1
# dom-cssmatrixcomponent-cssmatrixcomponent

Browser compatibility

BCD tables only load in the browser