CSSTransformComponent
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
The CSSTransformComponent interface of the CSS Typed Object Model API is part of the CSSTransformValue interface.
Instance properties
CSSTransformComponent.is2DRead only-
Returns 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 CSS transform 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> |
Browser compatibility
Loading...