CSSTransformComponent
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
TheCSSTransformComponent interface of theCSS Typed Object Model API is part of theCSSTransformValue interface.
In this article
Instance properties
CSSTransformComponent.is2DRead onlyReturns a boolean indicting whether the transform is 2D or 3D.
Instance methods
CSSTransformComponent.toMatrix()Returns a new
DOMMatrixobject.CSSTransformComponent.toString()A string in the form of a CSStransform function.
This will use the value of
is2Dto return either a 2D or 3D transform. For example if the component representsCSSRotateandis2Dis false then the string returned will be in the form of the CSS transformationrotate3d()function. If true the string returned will be in the form of the 2-dimensionalrotate()function.
Examples
To do
Specifications
| Specification |
|---|
| CSS Typed OM Level 1> # csstransformcomponent> |