Skip to content

Instantly share code, notes, and snippets.

@geoffreycrofte
Created January 28, 2012 12:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save geoffreycrofte/1694171 to your computer and use it in GitHub Desktop.
Save geoffreycrofte/1694171 to your computer and use it in GitHub Desktop.
Same effect in mouseover and mouseout
/**
*
* Same effect in mouseover and mouseout
* Different effects in : http://codepen.io/CreativeJuiz/pen/gnIJG
*
*/
div {
width: 90px; height: 90px;
margin: 3em;
background: #fff;
border: 20px solid #aaa;
border-radius: 30px;
transition: all 2s; /* transition when the mouse over */
}
div:hover {
border-color: #333;
transform: rotate(1080deg);
border-radius: 50%;
}
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment