Created
January 28, 2012 12:36
-
-
Save geoffreycrofte/1694171 to your computer and use it in GitHub Desktop.
Same effect in mouseover and mouseout
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
/** | |
* | |
* 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%; | |
} |
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
<div></div> |
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
{"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