Last active
February 21, 2019 18:06
-
-
Save alvinwan/cdcfa678d24a441620a645245e2a28cd to your computer and use it in GitHub Desktop.
The noob's guide to 3D Transforms with CSS - Rotations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.rotated-square { | |
transform: | |
rotateX(20deg) /* flip "up" */ | |
rotateY(-20deg) /* flip "right" */ | |
rotateZ(20deg); /* rotate counter-clockwise */ | |
} | |
.rotated-square-shorthand { | |
transform: rotate3d(20deg, -20deg, 20deg); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment