<a class="face-button" href="#">
<div class="face-primary">
<span class="icon fa fa-cloud"></span>
Download
</div>
<div class="face-secondary">
<span class="icon fa fa-hdd-o"></span>
Size: 52 kt
</div>
</a>
@import url('//fonts.googleapis.com/css?family=Roboto:500');
@import url('//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css');
body {
padding: 64px 0;
text-align: center;
}
.face-button {
$height: 64px;
$accentColor: #e43;
height: $height;
display: inline-block;
border: 3px solid $accentColor;
font-family: 'Roboto', sans-serif;
font-size: 20px;
font-weight: 500;
text-align: center;
text-decoration: none;
color: $accentColor;
overflow: hidden;
.icon {
margin-right: 6px;
}
.face-primary,
.face-secondary {
display: block;
padding: 0 32px;
line-height: $height;
transition: margin .4s;
}
.face-primary {
background-color: $accentColor;
color: #fff;
}
&:hover .face-primary {
margin-top: -$height;
}
}
View Compiled
This Pen doesn't use any external CSS resources.