perspective-origin property

This topic has not yet been rated - Rate this topic

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

This property is read/write.

CSS Transforms Module, Level 3, Section 11

Syntax

perspective-origin: [ [ <percentage> | <length> | left | center | right ] [ <percentage> | <length> | top | center | bottom ] ? ] | [ [ left | center | right ] || [ top | center | bottom ] ]

Property values

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

length

A floating-point number, followed by a supported length unit, that indicates the origin of transformation.

percentage

An integer, followed by a %. The value is a percentage of the total box length (for the first value) or the total box height (for the second value, if specified).

left

First value only. Equal to 0% or a zero length.

center

First value only. Equal to 50% or half the length of the box.

right

First value only. Equal to 100% or the full box length.

top

Second value only. Equal to 0% or a zero height.

center

Second value only. Equal to 50% or a half the height of the box.

bottom

Second value only. Equal to 100% or the full box height.

CSS information

Applies Toblock-level and inline-level elements
Mediavisual
Inheritedno
Initial Value50% 50%

Standards information

Remarks

This property does not affect how the object is rendered.

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

To learn more about Cascading Style Sheets (CSS) transforms in a Windows Store app using JavaScript, see How to bring your webpage to life with CSS transforms, transitions, and animations.

See also

CSSStyleDeclaration
currentStyle
style
a
abbr
b
bdo
br
cite
code
em
i
img
input
kbd
label
q
samp
select
small
span
strong
sub
sup
textArea
var
address
blockQuote
div
dl
fieldSet
form
ol
p
pre
table
ul
dd
dt
li
tBody
td
tFoot
th
tHead
tr
button
del
ins
map
object
script
transform
How to bring your webpage to life with CSS transforms, transitions, and animations

 

 

Build date: 11/29/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.