The CSSTransformComponent interface of the CSS_Object_Model#css_typed_object_model is part of the CSSTransformValue interface.
On this page
CSSTransformComponent
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
Transforms 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-dimensionalrotate3D()function.
Examples
To do
Specifications
| Specification |
|---|
| CSS Typed OM Level 1 # csstransformcomponent |
Browser compatibility
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
CSSTransformComponent |
66 | 79 | No | No | 53 | 16.4 | 66 | 66 | No | 47 | 16.4 | 9.0 |
is2D |
66 | 79 | No | No | 53 | 16.4 | 66 | 66 | No | 47 | 16.4 | 9.0 |
toMatrix |
66 | 79 | No | No | 53 | 16.4 | 66 | 66 | No | 47 | 16.4 | 9.0 |
toString |
66 | 79 | No | No | 53 | 16.4 | 66 | 66 | No | 47 | 16.4 | 9.0 |
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/CSSTransformComponent