Table of Contents

Class CSSPerspective

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

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

[Value("CSSPerspective")]
public class CSSPerspective : CSSTransformComponent
Inheritance
CSSPerspective
Inherited Members

Remarks

Constructors

CSSPerspective()

public CSSPerspective()

CSSPerspective(Union14)

The CSSPerspective() constructor creates
a new CSSPerspective object representing the {{cssxref("transform-function/perspective", "perspective()")}} value of
the individual 'transform' property in CSS.

public CSSPerspective(Union14 length)

Parameters

length Union14

Remarks

Properties

Length

The length property of the
CSSPerspective interface sets the distance from z=0.

[Value("length")]
public Union14 Length { get; set; }

Property Value

Union14

A CSSNumericValue

Remarks

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.

See also on MDN