Skip to content

Instantly share code, notes, and snippets.

Created April 15, 2012 18:55
Show Gist options
  • Save anonymous/2394327 to your computer and use it in GitHub Desktop.
Save anonymous/2394327 to your computer and use it in GitHub Desktop.
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
html {
background: #111;;
min-height: 100%;
}
a.social {
border: 0.5em solid #1DC2CD;
display: block;
height: 8em;
width: 8em;
border-radius: 50%;
box-shadow: inset 0 0 10px #888, inset 0 0 10px #888, inset 0 0 10px #888, inset 0 0 10px #888;
position: relative;
opacity: 0.2;
transition: opacity ease-in 0.2s;
overlow: hidden;
}
a.social:hover {
opacity: 1;
}
a.social img {
position: absolute;
border-radius: 50%;
width: 100%;
height: 100%;
z-index: -1;
}
<!-- content to be placed inside <body>…</body> -->
<a href="#" class="social">
<img src="https://a248.e.akamai.net/assets.github.com/images/modules/about_page/octocat.png?1310104853" />
</a>
{"view":"split","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment