---
title: CSSPerspective.length
slug: Web/API/CSSPerspective/length
tags:
  - API
  - CSS Typed Object Model API
  - CSSPerspective
  - CSSTransformComponent
  - CSSTransformValue
  - Experimental
  - Houdini
  - Property
browser-compat: api.CSSPerspective.length
---
{{APIRef("CSS Typed OM")}}{{SeeCompatTable}}{{draft}}

The **`length`** property of the
{{domxref("CSSPerspective")}} interface sets the distance from z=0.

It is used to apply a perspective transform to the element and its content. If the
value is 0 or a negative number, no perspective transform is applied.

## Syntax

```js
var length = CSSPerspective.length;
```

### Value

A {{domxref("CSSNumericValue")}}

## Examples

To Do

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}
