Using with 3d transforms, we can move element to x-axis, y-axis and z-axis.
Example
The following an example shows the x-axis 3D transforms
<html>
<head>
<style>
div {
width: 200px;
height: 100px;
background-color: pink;
border: 1px solid black;
}
div#myDiv {
-webkit-transform: rotateX(150deg);
/* Safari */
transform: rotateX(150deg);
/* Standard syntax */
}
</style>
</head>
<body>
<div>
My website
</div>
<p>
Rotate X-axis
</p>
<div id = "myDiv">
My website
</div>
</body>
</html>Output
