HTML | DOM Style perspective Property Last Updated : 05 Jun, 2022 Comments Improve Suggest changes Like Article Like Report The Style perspective property in HTML DOM is used to determine how far an element is placed from the Z plane. It provides the 3D view of an element. Syntax: It returns the perspective property.object.style.perspectiveIt sets the perspective property.object.style.perspective = "none|length|initial|inherit" Property Values: none: It is the default value. It sets the perspective to zero or perspective not set.length: It sets the distance where the element is placed from the view.initial: It sets the element to its initial position.inherit: The element inherits its property from parent element. Example: This example displays the DOM style perspective property. html <!DOCTYPE html> <html> <head> <style> #circle { height: 400px; width: 400px; margin-left: 50px; background-color: #555; border-radius: 50%; } #container { padding: 50px; margin: 0 60px; border: 1px solid black; background-color: white; transform: rotateX(15deg); } h1, h2 { color:green; font-weight:bold; } </style> </head> <body> <div id="circle"> <button onclick="myGeeks()"> Click Here! </button> <div id="container"> <h1>GeeksforGeeks</h1> <h2> A computer science portal for geeks </h2> </div> </div> <!-- Script to display perspective property --> <script> function myGeeks() { document.getElementById("circle").style.perspective = "100px"; } </script> </body> </html> Output: Before Click on the button: After Click on the button: Supported Browsers: The browser supported by DOM Style perspective Property are listed below: Google Chrome 36.0 and aboveEdge 12.0 and aboveInternet Explorer 10.0 and aboveFirefox 16.0 and aboveSafari 9.0 and aboveOpera 23.0 and above Create Quiz Comment C ChinkitManchanda Follow 0 Improve C ChinkitManchanda Follow 0 Improve Article Tags : Web Technologies HTML HTML-DOM Explore HTML BasicsHTML Introduction4 min readHTML Editors4 min readHTML Basics7 min readStructure & ElementsHTML Elements4 min readHTML Attributes7 min readHTML Headings3 min readHTML Paragraphs3 min readHTML Text Formatting4 min readHTML Block and Inline Elements3 min readHTML Charsets4 min readListsHTML Lists3 min readHTML Ordered Lists5 min readHTML Unordered Lists4 min readHTML Description Lists3 min readVisuals & MediaHTML Colors11 min readHTML Links Hyperlinks2 min readHTML Images7 min readHTML Favicon4 min readHTML Video4 min readLayouts & DesignsHTML Tables10 min readHTML Iframes4 min readHTML Layout4 min readHTML File Paths3 min readProjects & Advanced TopicsHTML Forms5 min readHTML5 Semantics5 min readHTML URL Encoding4 min readHTML Responsive Web Design11 min readTop 10 Projects For Beginners To Practice HTML and CSS Skills8 min readTutorial ReferencesHTML Tags - A to Z List15+ min readHTML Attributes Complete Reference8 min readHTML Global Attributes5 min readHTML5 Complete Reference8 min readHTML5 MathML Complete Reference3 min readHTML DOM Complete Reference15+ min readHTML DOM Audio/Video Complete Reference2 min readSVG Element Complete Reference5 min readSVG Attribute Complete Reference8 min readSVG Property Complete Reference7 min readHTML Canvas Complete Reference4 min read Like