CSSTransformValue

The CSSTransformValue interface of the CSS Typed Object Model API represents transform-list values as used by the CSS transform property. It is an iterable of CSSTransformComponent objects, each representing a single .

MDN Reference

Constructors

Link copied to clipboard
constructor(transforms: ReadonlyArray<CSSTransformComponent>)

Properties

Link copied to clipboard
open external val is2D: Boolean

The is2D read-only property of the CSSTransformValue interface returns whether the transform is 2D or 3D.

Link copied to clipboard
open external override val length: Int

The length read-only property of the CSSTransformValue interface returns the number of items in the object.

Functions

Link copied to clipboard
Link copied to clipboard
open external fun forEach(action: (item: CSSTransformComponent) -> Unit)
Link copied to clipboard
open operator external fun get(index: Int): CSSTransformComponent
Link copied to clipboard
open external fun keys(): JsIterator<JsInt>
Link copied to clipboard
open external fun toMatrix(): DOMMatrix

The toMatrix() method of the CSSTransformValue interface returns a DOMMatrix object.

Link copied to clipboard