CSSMatrixComponent: CSSMatrixComponent() constructor

Note: This feature is available in Web Workers.

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.

options Optional

An object with the following property:

is2D

A boolean indicating whether the constructed CSSMatrixComponent should be treated as a 2D matrix. If omitted, this defaults to the value of matrix's own is2D property.

Examples

To do

Specifications