CSSScale

open class CSSScale(var x: CSSNumberish, var y: CSSNumberish, var z: CSSNumberish = definedExternally) : CSSTransformComponent(source)

The CSSScale interface of the CSS Typed Object Model API represents the scale() and scale3d() values of the individual transform property in CSS.

MDN Reference

Constructors

Link copied to clipboard
constructor(x: CSSNumberish, y: CSSNumberish, z: CSSNumberish = definedExternally)

Properties

Link copied to clipboard
open external var is2D: Boolean

The is2D property of the CSSTransformComponent interface represents whether the transform is 2D or 3D.

Link copied to clipboard
open external var x: CSSNumberish

The x property of the CSSScale interface gets and sets the abscissa or x-axis of the translating vector.

Link copied to clipboard
open external var y: CSSNumberish

The y property of the CSSScale interface gets and sets the ordinate or y-axis of the translating vector.

Link copied to clipboard
open external var z: CSSNumberish

The z property of the CSSScale interface represents the z-component of the translating vector. A positive value moves the element towards the viewer, and a negative value farther away.

Functions

Link copied to clipboard
open external fun toMatrix(): DOMMatrix

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