CSSTransformValue: length property

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

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

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

The **length** read-only property of the {{domxref("CSSTransformValue")}} interface returns the number of items in the object.

Value

An integer.

Examples

Basic usage

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

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

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • {{domxref("CSSTransformValue.CSSTransformValue", "CSSTransformValue()")}}
  • {{domxref("CSSTransformValue.entries()")}}
  • {{domxref("CSSTransformValue.forEach()")}}
  • {{domxref("CSSTransformValue.keys()")}}
  • {{domxref("CSSTransformValue.values()")}}
  • Using the CSS Typed OM
  • CSS Typed Object Model API