CSSTranslate

فهرست فصل‌ها دانلود آرشیوناشر

MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونه‌کد

{{APIRef("CSS Typed Object Model API")}} {{AvailableInWorkers}}

The **CSSTranslate** interface of the CSS Typed Object Model API represents the {{cssxref("transform-function/translate", "translate()")}} value of the individual {{CSSXRef('transform')}} property in CSS.

{{InheritanceDiagram}}

Constructor

  • {{domxref("CSSTranslate.CSSTranslate", "CSSTranslate()")}}
  • : Creates a new CSSTranslate object.

Instance properties

_Also inherits properties from its parent interface, {{DOMxRef("CSSTransformComponent")}}._

  • {{domxref('CSSTranslate.x','x')}}
  • : Returns or sets the x-axis value.
  • {{domxref('CSSTranslate.y','y')}}
  • : Returns or sets the y-axis value.
  • {{domxref('CSSTranslate.z','z')}}
  • : Returns or sets the z-axis value.

Instance methods

_Also inherits methods from its parent interface, {{DOMxRef("CSSTransformComponent")}}._

Examples

To do.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}