Created
April 27, 2012 11:45
-
-
Save mightymess/2508598 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
body{ | |
background:#DDD; | |
font-family:PacificoRegular; | |
color:#ea4c89; | |
font-smooth:always; | |
} | |
.reveal{ | |
background:#DDD; | |
position:absolute; | |
width:400px; | |
height:400px; | |
z-index:5; | |
opacity:0; | |
transition-property: opacity; | |
transition-duration: 0.5s; | |
transition-timing-function: ease-in-out; | |
transition-delay: 1.5s; | |
font-size:150%; | |
text-align:center; | |
line-height:400px; | |
} | |
.slider, .innerShadow, .frame{ | |
position:absolute; | |
border-radius:0; | |
width:300px; | |
height:300px; | |
} | |
.frame{ | |
top:50px; | |
left:50px; | |
background:#444; | |
width:300px; | |
height:300px; | |
border-color:#444; | |
border-style:solid; | |
border-width:13px 15px 15px; | |
box-shadow:#000 0 5px 10px, #000 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; | |
text-align:center; | |
} | |
.shadow{ | |
box-shadow:#333 0 0 30px; | |
} | |
.reveal:hover + .frame .slider{ | |
transition: all 0.5s ease-in-out; | |
transform:translate(0, -380px); | |
} | |
.pannel{ | |
background:transparent url("http://mightymess.com/dribble/dribbble-ball.png") center center; | |
width: 270px; | |
display:none; | |
height:270px; | |
border-radius:150px; | |
position:absolute; | |
transition: all 0.8s ease-in-out; | |
} | |
.reveal:hover + .frame .pannel.top{ | |
transform-origin:right center; | |
transform: rotate(-180deg); | |
} | |
.reveal:hover + .frame .pannel.right{ | |
transform-origin:center bottom; | |
transform: rotate(-180deg); | |
} | |
.reveal:hover + .frame .pannel.bottom{ | |
transform-origin:left center; | |
transform: rotate(-180deg); | |
} | |
.reveal:hover + .frame .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{ | |
background:#8aba56; | |
color:#FFF; | |
font-size:250%; | |
text-align:center; | |
line-height:290px; | |
height:300px; | |
} | |
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
<link rel="stylesheet" href="http://mightymess.com/wp-content/themes/FDLA/pacifico-fontfacekit/stylesheet.css" type="text/css" media="screen"/> | |
<!-- content to be placed inside <body>…</body> --> | |
<div class="reveal">patience...</div> | |
<div class="frame"> | |
<div class="innerShadow"> </div> | |
<div class="slider shadow"> | |
<img src="http://www.mightymess.com/dribble/dribble_white.png"/> | |
</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> | |
<div class="back">The text!</div> | |
</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