<div class="container">
<a href="#" class="bnt-massage">
CONTACT
<span>It opens mailer.</span>
</a>
</div>
/* ここはコピーしなくてOK */
.container {
font-family: "Yu Gothic", YuGothic, Verdana, 'Hiragino Kaku Gothic ProN','Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'メイリオ', Meiryo, sans-serif;
text-align: center;
padding-top: 40px;
}
/* ここから下がボタンのCSS */
.bnt-massage {
display: inline-block;
min-width: 130px;
text-align: center;
background-color: #000;
font-size: 20px;
color: #FFF;
text-decoration: none;
font-weight: bold;
padding: 10px 16px 10px 40px;
position: relative;
transition: .9s;
border: 1px solid #FFF;
}
.bnt-massage:before {
font-family: "FontAwesome";
content: "\f0e0";
position: absolute;
left: 20px;
top: 50%;
margin-top: -10px;
}
.bnt-massage span {
display: block;
position: absolute;
background-color: #d9385f;
top: 0;
left: 0;
width: 100%;
height: 34px;
font-size: 14px;
line-height: 34px;
border-radius: 0 0 8px 0;
z-index: -1;
transition: .5s;
}
.bnt-massage:hover {
border-radius: 8px 0 0;
}
.bnt-massage:hover span {
transform: translateY(50px);
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.