Created
August 28, 2011 10:29
-
-
Save pepebe/1176514 to your computer and use it in GitHub Desktop.
komodo: .box_rotate (transform snippet for Komodo Edit)
This file contains 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
.csstransforms .box_rotate { | |
/* use modernizr to give these rules only to capable browsers */ | |
-moz-transform: rotate([[%ask1:Grad:90.0]]deg); /* FF3.5+ */ | |
-o-transform: rotate([[%ask1]]deg); /* Opera 10.5 */ | |
-webkit-transform: rotate([[%ask1]]deg); /* Saf3.1+, Chrome */ | |
-ms-transform: rotate([[%ask1]]deg); /* IE9 */ | |
transform: rotate([[%ask1]]deg); | |
-webkit-transform-origin: [[%ask2:left:50%]] [[%ask3:top:50%]]; | |
-moz-transform-origin: [[%ask2]] [[%ask3]]; | |
-ms-transform-origin: [[%ask2]] [[%ask3]]; | |
-o-transform-origin: [[%ask2]] [[%ask3]]; | |
/* No rotation for ielt9 */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Komodo snippet for rotating a box by x degree using css3 transforms.
This snippet will ask for some parameters and then add something like this to you stylesheet:
Frankensteind from css3please.org