<div class="container">
<a href="#" class="btn-gradation">PUSH ME</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 */
.btn-gradation {
display: inline-block;
width: 180px;
text-align: center;
font-size: 16px;
color: #FFF;
text-decoration: none;
font-weight: bold;
padding: 12px 24px;
border-radius: 4px;
background-image: linear-gradient(-90deg, #FF006E, #FFD500);
transition: .5s;
background-size: 200%;
}
.btn-gradation:hover {
background-position: right center;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.