Created
October 17, 2013 20:48
-
-
Save LaminSanneh/7031944 to your computer and use it in GitHub Desktop.
Css3 transition rotate snippet
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
/*Note that this is not regular css, we are using scss*/ | |
.logo-image{ | |
/*Put easing and time duration here*/ | |
-webkit-transition: all 0.5s ease-in-out; | |
-moz-transition: all 0.5s ease-in-out; | |
-o-transition: all 0.5s ease-in-out; | |
-ms-transition: all 0.5s ease-in-out; | |
&:hover{ | |
/*Set rotation values here*/ | |
-webkit-transform: rotate(-30deg); | |
-moz-transform: rotate(-30deg); | |
-o-transform: rotate(-30deg); | |
-ms-transform: rotate(-30deg); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment