Code snippet to rotate element 90 degrees.
div {
transform: rotate(90deg);
}
Rotate along the x-axis.
div {
transform: rotateX(90deg);
}
Rotate along the y-axis.
div {
transform: rotateY(90deg);
}
Found this article interesting? Follow Brightwhiz on Facebook, Twitter, and YouTube to read and watch more content we post.