Share via


perspectiveOrigin property

Gets or sets one or two values that represent the origin (the vanishing point for the 3-D space) of an object with an IHTMLCSSStyleDeclaration2::perspective property declaration.

This property is read/write.

 

Syntax

HRESULT put_perspectiveOrigin(
  [in]          BSTR v
);

HRESULT get_perspectiveOrigin(
  [out, retval] BSTR *p
);

Property values

Type: BSTR

One or two of the following origin values, separated by whitespace.

String format

[[ <percentage> | <length> | left | center | right ][ <percentage> | <length> | top | center | bottom ] ? ]|[[ left | center | right ] || [ top | center | bottom ]]

CSS information

Applies To block-level and inline-level elements
Media visual
Inherited no
Initial Value 50% 50%

Standards information

Remarks

This property does not affect how the object is rendered.

This property has no effect on child elements if the IHTMLCSSStyleDeclaration2::perspective property is not set for the object.

Do not use the Microsoft vendor prefix ("-ms-") before the IHTMLCSSStyleDeclaration2::perspectiveOrigin 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