Firefox Tomorrow

web api constructor

CSSTranslate: CSSTranslate() constructor

View on MDN ↗

The CSSTranslate() constructor creates a new CSSTranslate object representing the translate() value of the individual transform property in CSS.

Syntax

new CSSTranslate(x, y)
new CSSTranslate(x, y, z)

Parameters

  • x
  • y
  • z Optional
    • : A value for the z-axis of the CSSTranslate object to be constructed. This must be a length.

      If a value is passed for the z-axis this is a 3d transform. The value of is2D will be set to false.

Exceptions

Examples

To do

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.