Style perspectiveOrigin Property
Style perspectiveOrigin Property
The perspectiveOrigin property is used for defining where a 3D element is placed on the x-axis and y-axis. It allows us to change the bottom position of 3D elements. In this, the child element will get a perspective origin position view, not the element itself and it only works on 3D transformed elements.
Syntax:-
Its syntax is:- object.style.perspectiveOrigin OR object.style.perspectiveOrigin = x-axis y-axis | initial | inherit
Return:-
Its return is:- string having perspective-origin property of an element
Further Explanation:-
Value | Description |
---|---|
x-axis | Defining where the view is placed at the x-axis like left, right, and length. |
y-axis | Defining where the view is placed at the y-axis like top, bottom, and length. |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |