Get the code of CSS Transform rotateX and watch video tutorials. You can practice using our code editor. Our practical guide will make your learning journey much easier. You can explore the tutorial and learn.
<div class="container">
<div class="box"></div>
</div>.container {
width: 150px;
height: 100px;
border: 2px solid red;
perspective: 300px;
}
.box {
width: 100%;
height: 100%;
background: green;
transform: rotateX(45deg);
}