Skip to content

Instantly share code, notes, and snippets.

@mightymess
Created April 27, 2012 11:45
Show Gist options
  • Save mightymess/2508598 to your computer and use it in GitHub Desktop.
Save mightymess/2508598 to your computer and use it in GitHub Desktop.
Untitled
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;
}
<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">&nbsp;</div>
<div class="slider shadow">
<img src="http://www.mightymess.com/dribble/dribble_white.png"/>
</div>
<div class="pannel top shadow">&nbsp;</div>
<div class="pannel right shadow">&nbsp;</div>
<div class="pannel bottom shadow">&nbsp;</div>
<div class="pannel left shadow">&nbsp;</div>
<div class="back">The text!</div>
</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