Efek animasi mirip dengan swipe, hanya ditambahkan efek round dengan menggunakan border-radius.
body {
margin: 0;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
font-family: sans-serif;
}
.btn {
border: 2px solid tomato;
background:none;
color: tomato;
padding: 20px 40px;
font-size: 25px;
text-transform: uppercase;
cursor: pointer;
transition: all 0.5s;
position: relative;
color: tomato;
overflow: hidden;
}
.btn:hover {
color: white;
}
.btn:before {
content: "";
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
background: tomato;
z-index: -1;
border-radius: 50% 50% 0% 0%;
height: 0%;
transition: all 0.5s;
}
.btn:hover:before {
height: 190%;
}