/    Sign up×
Reference /Pin to ProfileBookmark

perspective-origin

The perspective-origin property designates the position from which the user is viewing the 3D-positioned element.

Syntax

When the perspective-origin property is defined, it is applied the child elements, not the element itself. This property must be used in conjunction with the perspective property.

div.ex {
  perspective: 150px;
  perspective-origin: right;
}

Values

x-axis
Defines where the user’s view is placed at the x-axis. Default value is 50%. Possible values: left, center, right, length, and percentage.

y-axis
Defines where the user’s view is placed at the y-axis. Default value is 50%. Possible values: top, center, bottom, length, and percentage.

initial
Sets the property to its default value.

inherit
Inherits this property’s value from its parent item.

Browser Compatibilty

Demos

Have a code example of perspective-origin? Submit a codepen.io demo and we'll showcase it here

to submit a demo.
CSS
×

Success!

Help @reference spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.30,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...