CSSTransformComponent
The CSSTransformComponent
interface of the CSS_Object_Model#css_typed_object_model is part of the CSSTransformValue
interface.
Properties
CSSTransformComponent.is2D
Read only-
Returns a boolean indicting whether the transform is 2D or 3D.
Methods
CSSTransformComponent.toMatrix()
-
Returns a new
DOMMatrix
object. CSSTransformComponent.toString()
-
A
DOMString
in the form of a CSStransforms function
.This will use the value of
is2D
to return either a 2D or 3D transform. For example if the component representsCSSRotate
andis2D
is 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 2 # csstransformcomponent |
Browser compatibility
BCD tables only load in the browser