If you want to add an awesome image gallery with 3D rotation to transition between the various images on click have a look at this code snippet by Maciej Leszczyński.
If you are having trouble with the pen, try the archived copy on GitHub
See the Pen Pure CSS 3D Gallery by Maciej Leszczyński (@devy_pl) on CodePen.0