Skip to content

Instantly share code, notes, and snippets.

@mightymess
Created April 25, 2012 09:10
Show Gist options
  • Save mightymess/2488389 to your computer and use it in GitHub Desktop.
Save mightymess/2488389 to your computer and use it in GitHub Desktop.
Untitled
.button{
position:relative;
border:solid 1px red;
border-radius:0px;
width:100px;
height:50px;
overflow:hidden;
}
.pannel{
background:#666;
width: 120px;
display:block;
height:120px;
border-radius:60px;
position:absolute;
top:-30px;
box-shadow:#333 0 0 1px;
transition: all 1s ease-in-out;
}
.button:hover .pannel.left{
transform-origin:center bottom;
transform: rotate(120deg);
}
.button:hover .pannel.right{
transform-origin:center bottom;
transform: rotate(-120deg);
}
.pannel.left{
left:-10px;
}
.pannel.right{
right:-10px;
}
<!-- content to be placed inside <body>…</body> -->
<div class="button">
<div class="pannel left">&nbsp;</div>
<div class="pannel right">&nbsp;</div>
<a href="#" class="roundBt">text</a>
</div>
{"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