Paul Hayes Follow @fofr on Twitter

CSS 3D Cube using 2D transforms

This is a demo, learn how it works or take a peek at the CSS behind it. Fork on Github.

Top cube face

The top face is nested in an extra div tag to give correct rotation of skewed rectangle.

This face is also scaled, so the font size has been reduced to accommodate.

Left cube face

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Right cube face

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.