JSFiddle - React, Tailwind, and code Playground
by Raúl Rojas
HTML
<a class="HH" href="http://www.dribbble.com/chrisota" title="Chris Ota Dribbble"><i class="fa fa-dribbble"></i> Dribbble</a>
CSS
a.HH {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: auto;
text-decoration: none;
cursor: pointer;
border: 1px solid #ee3769;
border-radius: 8px;
height: 2.8em;
width: 10em;
padding: 0;
outline: none;
overflow: hidden;
color: #ee3769;
transition: color 0.3s 0.1s ease-out;
text-align: center;
line-height: 250%;
}
a.HH::before {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: auto;
content: "";
border-radius: 50%;
display: block;
width: 20em;
height: 20em;
line-height: 20em;
left: -5em;
text-align: center;
transition: box-shadow 0.5s ease-out;
z-index: -1;
}
a.HH:hover {
color: #fff;
}
a.HH:hover::before {
box-shadow: inset 0 0 0 10em #ee3769;
}