Skip to content

Instantly share code, notes, and snippets.

@LaminSanneh
Created October 17, 2013 20:48
Show Gist options
  • Save LaminSanneh/7031944 to your computer and use it in GitHub Desktop.
Save LaminSanneh/7031944 to your computer and use it in GitHub Desktop.
Css3 transition rotate snippet
/*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