CSSTranslate
open class CSSTranslate(var x: CSSNumericValue, var y: CSSNumericValue, var z: CSSNumericValue = definedExternally) : CSSTransformComponent(source)
The CSSTranslate interface of the CSS Typed Object Model API represents the translate() value of the individual transform property in CSS. It inherits properties and methods from its parent CSSTransformValue.
Properties
Link copied to clipboard
The x property of the CSSTranslate interface gets and sets the abscissa or x-axis of the translating vector.
Link copied to clipboard
The y property of the CSSTranslate interface gets and sets the ordinate or y-axis of the translating vector.
Link copied to clipboard
The z property of the CSSTranslate interface representing the z-component of the translating vector. A positive value moves the element towards the viewer, and a negative value farther away.