Created
March 14, 2013 23:12
-
-
Save aurelkurtula/5166066 to your computer and use it in GitHub Desktop.
hover effect
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
/** | |
* hover effect | |
http://www.diesel.com/campaign/#/ | |
*/ | |
body{ | |
background: gray; | |
} | |
#container{ | |
width: 300px; | |
height: 200px; | |
background: blue; | |
overflow: hidden; | |
content: " Hover" ; | |
} | |
a{ opacity: 1; | |
-webkit-transform-origin: 0% 0%; | |
background-color: rgb(236, 116, 96); | |
width: 100px; | |
height: 347px; | |
display:block; | |
margin: -15px 0 0 300px; | |
} | |
#container:hover a{ | |
-webkit-transform: rotate(13deg) ; | |
} |
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
<!-- content to be placed inside <body>…</body> --> | |
<div id="container"> | |
<a href=""></a> | |
</div> |
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
// alert('Hello world!'); |
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
{"view":"split-vertical","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