Created
May 12, 2014 19:17
-
-
Save carlosrojaso/900053b5885ae0f7b029 to your computer and use it in GitHub Desktop.
CSS3 2D Transforms
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
#div1 | |
{ | |
-ms-transform: rotate(30deg); /* IE 9 */ | |
-webkit-transform: rotate(30deg); /* Chrome, Safari, Opera */ | |
transform: rotate(30deg); | |
} | |
#div2 | |
{ | |
-ms-transform: translate(50px,100px); /* IE 9 */ | |
-webkit-transform: translate(50px,100px); /* Chrome, Safari, Opera */ | |
transform: translate(50px,100px); | |
} | |
#div3 | |
{ | |
-ms-transform: rotate(30deg); /* IE 9 */ | |
-webkit-transform: rotate(30deg); /* Chrome, Safari, Opera */ | |
transform: rotate(30deg); | |
} | |
#div4 | |
{ | |
-ms-transform: scale(2,4); /* IE 9 */ | |
-webkit-transform: scale(2,4); /* Chrome, Safari, Opera */ | |
transform: scale(2,4); | |
} | |
#div5 | |
{ | |
-ms-transform: skew(30deg,20deg); /* IE 9 */ | |
-webkit-transform: skew(30deg,20deg); /* Chrome, Safari, Opera */ | |
transform: skew(30deg,20deg); | |
} | |
#div6 | |
{ | |
-ms-transform:matrix(0.866,0.5,-0.5,0.866,0,0); /* IE 9 */ | |
-webkit-transform:matrix(0.866,0.5,-0.5,0.866,0,0); /* Chrome, Safari, Opera */ | |
transform:matrix(0.866,0.5,-0.5,0.866,0,0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment