In this code sample, you’ll see a rotating cube with blank and image-based faces. The rotation of each face is governed by the transform property across the Y and Z axis.

See the Pen
Pivoting and Rotating 3D Cube in CSS
by Devtutorials4u (@devtutorial4u)
on CodePen.