Profile Badge
Profile badge with hover effect
HTML
<link href='http://fonts.googleapis.com/css?family=Pinyon+Script' rel='stylesheet' type='text/css'>
<header>
<a class="badge">
<div class="bubble">Get to da choppa !</div>
</a>
</header>
CSS
header {
padding: 10px;
background: mediumseagreen;
text-align: center;
}
.badge {
display: inline-block;
position: relative;
margin: 0 auto;
width: 150px;
height: 150px;
background-image: url('http://cineplex.media.baselineresearch.com/images/78580/78580_full.jpg');
background-color: black;
background-position: top;
background-size: cover;
border-radius: 50%;
border: 6px solid white;
box-shadow: 0 2px 4px rgba(0,0,0,.3);
cursor: pointer;
-webkit-filter: grayscale(100%);
}
.badge:hover {
-webkit-filter: grayscale(0);
}
.bubble {
opacity: 0;
position: absolute;
left:-40px; right:-40px; top: 130px;
background: #eee;
padding: 10px 20px;
border-radius: 10px;
font-size: 1.5em;
font-family: 'Pinyon Script';
text-align: center;
box-shadow: inset 0 -2px 2px rgba(0,0,0,.2);
transition: opacity .2s;
-webkit-transform: translateZ(0); /* Chrome opacity transition fix */
}
.badge:hover .bubble {
opacity: 1;
}