Back to Content

CSSScale

files/en-us/web/api/cssscale/index.md

latest889 B
Original Source

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

The CSSScale interface of the CSS Typed Object Model API represents the {{cssxref("transform-function/scale", "scale()")}} and {{cssxref("transform-function/scale3d", "scale3d()")}} values of the individual {{CSSXRef('transform')}} property in CSS. It inherits properties and methods from its parent {{domxref('CSSTransformValue')}}.

{{InheritanceDiagram}}

Constructor

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

Instance properties

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

Examples

To do.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}