CSS perspective Property
CSS perspective Property
The perspective property is used to specify how far the object is away from the user. Therefore, we can say that a lower value will result in a more intensive 3D effect than a higher value. It is used to give a 3D-positioned element some perspective. When we define a perspective property for an element, it will impact its CHILD elements.
Default Value:-
Its default value is none.
Syntax:-
Its syntax is:- perspective: length | none;
Further Explanation:-
Property Value | Description |
---|---|
length | How far the element is placed from the view |
none | The perspective is not set |
initial | Sets this property to its default value. |
inherit | Inherits this property from its parent element. |