CSS Bologna 👨‍🏫

3D Animations

🏡 Home

CSS supports 3D animations and it is relatively easy to implement. You must include a perspective value on the parent element for this to work.

💡
The perspective value represents how far away the user is from the element. The higher the number the less noticeable the perspective change.
.parent {
perspective: 300px;
}
.child {
transform: rotateX(75deg);
}
.element