Created
April 26, 2012 10:21
-
-
Save mightymess/2498519 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
.slider, .innerShadow, .frame{ | |
position:absolute; | |
border-radius:0; | |
width:300px; | |
height:300px; | |
} | |
.frame{ | |
top:50px; | |
left:50px; | |
background:#6d320e; | |
width:300px; | |
height:300px; | |
border-color:#6d320e; | |
border-style:solid; | |
border-width:13px 15px 15px; | |
box-shadow:#000 0 5px 10px, #421e09 0 6px 1px; | |
overflow:hidden; | |
} | |
.innerShadow{ | |
box-shadow:inset #000 0 0 30px; | |
z-index:3; | |
} | |
.slider{ | |
background-image: linear-gradient(bottom, rgb(136,35,9) 6%, rgb(181,73,45) 53%); | |
z-index:2; | |
top:0; | |
width:300px; | |
height:300px; | |
transform:translate(0, 0); | |
transition: all 1.5s ease-in-out; | |
} | |
.shadow{ | |
box-shadow:#333 0 0 30px; | |
} | |
.frame:hover .slider{ | |
transition: all 0.5s ease-in-out; | |
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; | |
background-image: radial-gradient(50% 50%, circle cover, rgba(255, 253, 209, 0.8), #ffe81c 44%,#ffb217 100%) | |
} | |
.frame:hover .pannel.top{ | |
transform-origin:right center; | |
transform: rotate(-180deg); | |
} | |
.frame:hover .pannel.right{ | |
transform-origin:center bottom; | |
transform: rotate(-180deg); | |
} | |
.frame:hover .pannel.bottom{ | |
transform-origin:left center; | |
transform: rotate(-180deg); | |
} | |
.frame: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; | |
} | |
.back{ | |
} | |
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="frame"> | |
<div class="innerShadow"> </div> | |
<div class="slider 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="back">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