CSSRotate

The CSSRotate interface of the CSS Typed Object Model API represents the value of a rotation function in the transform property in CSS.

MDN Reference

Constructors

Link copied to clipboard
constructor(x: CSSNumberish, y: CSSNumberish, z: CSSNumberish, angle: CSSNumericValue)
constructor(angle: CSSNumericValue)

Properties

Link copied to clipboard
open external var angle: CSSNumericValue

The angle property of the CSSRotate interface represents the angle of rotation. A positive angle denotes a clockwise rotation, a negative angle a counter-clockwise one.

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 CSSRotate interface represents the x-coordinate of the vector denoting the axis of rotation.

Link copied to clipboard
open external var y: CSSNumberish

The y property of the CSSRotate interface represents the y-coordinate of the vector denoting the axis of rotation.

Link copied to clipboard
open external var z: CSSNumberish

The z property of the CSSRotate interface represents the z-coordinate of the vector denoting the axis of rotation.

Functions

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

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