CSS3 Hover Transitions
CSS3 Hover Effect
<link href='http://fonts.googleapis.com/css?family=Monoton' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Monoton' rel='stylesheet' type='text/css'>
<a href="#" class="btn effect-1">M</a>
// Basic Round Button Layout
// Basic Round Button Layout
a {
color: white;
text-decoration: none;
font-size: 40px;
}
.effect-1 {
position: relative;
height: 100px;
width: 100px;
margin: 100px;
border-radius(50%);
display: block;
text-align: center;
line-height: 100px;
font-family: 'Monoton', cursive;
background-color: black;
-webkit-transform: translateZ(0);
&:hover {
background-color: rgba(0,0,0,0.8);
transition(background-color 0.2s);
&:after {
scale(1);
transition(transform 0.2s);
}
}
}
.effect-1:after {
position: absolute;
top:-10px;
left: -10px;
content: '';
height: 100%;
width: 100%;
padding: 10px;
border-radius(50%);
box-shadow(0 0 0 5px rgba(0,0,0,0.8));
scale(0.7);
transition(transform 0.2s);
}