Created
August 28, 2012 03:03
-
-
Save vennsoh/3494554 to your computer and use it in GitHub Desktop.
Sphere
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
/* Sphere */ | |
.container { | |
width: 220px; | |
height: 220px; | |
text-align: center; | |
border-radius: 50%; | |
position: relative; | |
cursor: default; | |
box-shadow: inset 0 0 0 16px rgba(0,0,0,.5); | |
transition: all 0.4s ease-in-out; | |
background-image: url(http://img840.imageshack.us/img840/7121/testlv.png); | |
} | |
.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; | |
} | |
.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; | |
} | |
.info p a:hover { | |
color: rgba(255,242,34, 0.8); | |
} | |
.container:hover { | |
box-shadow: inset 0 0 0 1px rgba(0,0,0,0); | |
} | |
.container:hover .info { | |
transform: scale(1); | |
opacity: 1; | |
} | |
.container:hover .info p { | |
opacity: 1; | |
} |
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
<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> |
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-vertical","fontsize":"80","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment