Skip to content

Instantly share code, notes, and snippets.

@alvinwan
Created February 21, 2019 18:19
Show Gist options
  • Save alvinwan/0a14ae35e4e8d933d57b93454109cd64 to your computer and use it in GitHub Desktop.
Save alvinwan/0a14ae35e4e8d933d57b93454109cd64 to your computer and use it in GitHub Desktop.
The noob's guide to 3D Transforms with CSS - Cube Example, Style 4
.front { transform: rotateY(0deg) }
.right { transform: rotateY(90deg) }
.left { transform: rotateY(-90deg) }
.back { transform: rotateY(180deg) }
.top { transform: rotateX(90deg) }
.bottom { transform: rotateX(-90deg) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment