perspective property
Gets or sets a value that represents the perspective from which all child elements of the object are viewed.
This property is read/write.
Syntax
HRESULT put_perspective(
[in] BSTR v
);
HRESULT get_perspective(
[out, retval] BSTR *p
);
Property values
Type: BSTR
The perspective, in pixels, from which to view each child element.
String format
none | <number>
CSS information
Applies To | block-level and inline-level elements |
Media | visual |
Inherited | no |
Initial Value | none |
Standards information
- CSS Transforms Module, Level 3, Section 10
Remarks
This property does not affect how the object is rendered.
This property is only applied to child elements that have a IHTMLCSSStyleDeclaration::transform specified.
The object is the projection plane for the child elements.
This property specifies that each child is rendered relative to the specified perspective, whereas the perspective function of the IHTMLCSSStyleDeclaration::transform property specifies that each child is rendered from the same perspective.
The following images illustrate the difference between this property and the perspective function of the IHTMLCSSStyleDeclaration::transform property.
Do not use the Microsoft vendor prefix ("-ms-") before the IHTMLCSSStyleDeclaration2::perspective property. It is supported unprefixed in Internet Explorer 10 and later.
To learn more about Cascading Style Sheets (CSS) transforms in Windows Internet Explorer, see How to bring your webpage to life with CSS transforms, transitions, and animations.
Requirements
Minimum supported client |
Windows 8 |
Minimum supported server |
Windows Server 2012 |
Header |
Mshtml.h |
IDL |
Mshtml.idl |
DLL |
Mshtml.dll |
See also
IHTMLCSSStyleDeclaration::transform
How to bring your webpage to life with CSS transforms, transitions, and animations