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
- CSSTransformValue.CSSTransformValue
- CSSTransformValue.entries()
- CSSTransformValue.forEach()
- CSSTransformValue.keys()
- CSSTransformValue.values()
- Using the CSS Typed OM
- CSS Typed Object Model API
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
