blob: a01d5b3ba27274972733ceb0d968b631275afa58 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
.container {
margin: 50px;
height: 300px;
width: 300px;
border: 1px solid black;
perspective: 500px;
}
.intermediate {
width: 100%;
height: 100%;
transform: translateX(0);
transform-style: preserve-3d;
}
.transformed {
width: 100%;
height: 100%;
background-color: blue;
transform: rotateY(45deg);
}
</style>
</head>
<body>
<div class="container">
<div class="intermediate">
<div class="transformed"></div>
</div>
</div>
</body>
</html>