Created
April 25, 2012 13:37
-
-
Save mightymess/2489759 to your computer and use it in GitHub Desktop.
Untitled
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
.button, .topButton, .innerShadow{ | |
position:absolute; | |
border-radius:0; | |
width:300px; | |
height:300px; | |
overflow:hidden; | |
} | |
.button{ | |
} | |
.innerShadow{ | |
z-index:3; | |
box-shadow:inset #333 0 0 30px; | |
} | |
.topButton{ | |
background:#666; | |
z-index:2; | |
transition: all 0.5s ease-in-out; | |
top:-40px; | |
width:300px; | |
height:380px; | |
border-radius:40px; | |
} | |
.shadow{ | |
box-shadow:#333 0 0 30px; | |
} | |
.button:hover .topButton{ | |
transform:translate(0, -380px); | |
} | |
.pannel{ | |
background:#666; | |
width: 300px; | |
display:block; | |
height:300px; | |
border-radius:150px; | |
border:solid 1px #333; | |
position:absolute; | |
transition: all 0.8s ease-in-out; | |
} | |
.button:hover .pannel.top{ | |
transform-origin:right center; | |
transform: rotate(-180deg); | |
} | |
.button:hover .pannel.right{ | |
transform-origin:center bottom; | |
transform: rotate(-180deg); | |
} | |
.button:hover .pannel.bottom{ | |
transform-origin:left center; | |
transform: rotate(-180deg); | |
} | |
.button:hover .pannel.left{ | |
transform-origin:center top; | |
transform: rotate(-180deg); | |
} | |
.pannel.left{ | |
left:-150px; | |
top:0; | |
} | |
.pannel.right{ | |
right:-150px; | |
top:0; | |
} | |
.pannel.top{ | |
top:-150px; | |
} | |
.pannel.bottom{ | |
bottom:-150px; | |
} | |
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
<!-- content to be placed inside <body>…</body> --> | |
<div class="button"> | |
<div class="innerShadow"> </div> | |
<div class="topButton shadow"> </div> | |
<div class="pannel top shadow"> </div> | |
<div class="pannel right shadow"> </div> | |
<div class="pannel bottom shadow"> </div> | |
<div class="pannel left shadow"> </div> | |
<a href="#" class="roundBt">text</a> | |
</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