MDN self-hosted library · e01.org

CSSTransformValue: length property

CSS Typed Object Model API

Open notebook · 1 cells web-api-instance-property upstream source

CSS Typed Object Model API

The length read-only property of the CSSTransformValue interface returns the number of items in the object.

Value

An integer.

Examples

Basic usage

const transform = new CSSTransformValue([
  new CSSTranslate(CSS.px(10), CSS.px(20)),
  new CSSScale(2, 3),
]);

console.log(transform.length); // 2

Specifications

Browser compatibility

See also