Class CSSPerspective
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The CSSPerspective interface of the CSS Typed Object Model API represents the 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 perspective() value of
the individual 'transform' property in CSS.
public CSSPerspective(Union14 length)
Parameters
lengthUnion14
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
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.