Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<html>
</head>
<style type="text/css">
.stage{
perspective: 100px;
perspective-origin: 25% 25%;
height:100px;
width:100px;
margin:5px;
padding:5px;
border:5px solid gray;
}
.box {
transform:rotateX(45deg);
height:70px;
width:70px;
background:green;
margin:5px;
padding:5px;
border:5px solid black;
}
</style>
</head>
<body>
<div class="stage">
<div class="box"></div>
</div>
</body>
</html>