Skip to content

Instantly share code, notes, and snippets.

@alvinwan
Created February 21, 2019 18:06
Show Gist options
  • Save alvinwan/2b358e677893569cc57ce8ccbd7ede5c to your computer and use it in GitHub Desktop.
Save alvinwan/2b358e677893569cc57ce8ccbd7ede5c to your computer and use it in GitHub Desktop.
The noob's guide to 3D Transforms with CSS - Scaling
.scaled-square {
transform:
scaleX(20deg) /* flip "up" */
scaleY(-20deg) /* flip "right" */
scaleZ(20deg); /* rotate counter-clockwise */
}
.scaled-square-shorthand {
transform: scale3d(20deg, -20deg, 20deg);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment