Skip to content

Instantly share code, notes, and snippets.

@vennsoh
Created August 30, 2012 11:55
Show Gist options
  • Save vennsoh/3527107 to your computer and use it in GitHub Desktop.
Save vennsoh/3527107 to your computer and use it in GitHub Desktop.
Sphere3
/* Sphere3 */
body{
height: 100%;
}
.container {
top:50%;
margin:auto;
margin-top:-110px;
width: 220px;
height: 220px;
text-align: center;
border-radius: 50%;
position: relative;
cursor: default;
transition: all 0.4s ease-in-out;
}
.info {
position: absolute;
background: rgba(0, 0, 0, 0.6);
width: inherit;
height: inherit;
border-radius: 50%;
opacity: 0;
transition: all 0.4s ease-in-out;
transform: scale(0);
}
.info h3 {
color: #fff;
text-transform: uppercase;
font-size: 22px;
margin: 30px 0 0 0;
height: 140px;
font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
text-shadow: 0 1px 2px rgba(0, 0, 0, 1);
}
.info p {
color: #fff;
font-style: italic;
margin: -20px 30px 0;
font-size: 12px;
padding-top: 10px;
border-top: 1px solid rgba(255,255,255,0.5);
opacity: 0;
transition: all 1s ease-in-out 0.4s;
}
.info p a {
text-decoration: none;
display: block;
color: #fff;
color: rgba(255,255,255,0.7);
font-style: normal;
text-transform: uppercase;
font-size: 9px;
letter-spacing: 1px;
padding-top: 5px;
font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}
.circle {
width: inherit;
height: inherit;
border-radius: 50%;
position: absolute;
box-shadow: inset 0 0 0 16px rgba(0,0,0,0.5);
transform-origin: 95% 40%;
transition: all 0.3s ease-in-out;
background-image: url(http://img840.imageshack.us/img840/7121/testlv.png);
}
.container:hover .circle {
transform: rotate(-110deg);
}
.info p a:hover {
color: rgba(255, 242, 34, 0.8);
}
.container:hover {
box-shadow: inset 0 0 0 100px rgba(0,0,0,0);
}
.container:hover .info {
transform: scale(1);
opacity: 1;
}
.container:hover .info p {
opacity: 1;
}
<div class="container">
<div class="info">
<h3>MySpace</h3>
<p>by Ee Venn Soh <a href="http://be.net/vennsoh">Visit Behance</a></p>
</div>
<div class="circle"></div
</div>
{"view":"separate","fontsize":"80","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment