HTML
<div class="push-button_box">
<a href="#" class="push-button jump">ジャンプ!</a>
</div>
CSS
.push-button_box {
width: 30%;
margin: 50px auto;
}
.push-button.jump {
display: block;
width: 100%;
padding: 14px 0;
background: #a78bfa;
color: #fff;
font-size: 16px;
font-weight: bold;
text-align: center;
text-decoration: none;
border-radius: 12px;
box-shadow: 0 4px 0 #7c3aed;
transition: transform 0.15s ease-in-out;
}
.push-button.jump:hover {
animation: jump-pop 0.4s ease;
}
@keyframes jump-pop {
0% { transform: translateY(0); }
40% { transform: translateY(-8px); }
70% { transform: translateY(4px); }
100% { transform: translateY(0); }
}