Skip to content

Instantly share code, notes, and snippets.

@aurelkurtula
Created March 14, 2013 23:12
Show Gist options
  • Save aurelkurtula/5166066 to your computer and use it in GitHub Desktop.
Save aurelkurtula/5166066 to your computer and use it in GitHub Desktop.
hover effect
/**
* 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) ;
}
<!-- content to be placed inside <body>…</body> -->
<div id="container">
<a href=""></a>
</div>
// alert('Hello world!');
{"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