<div class="btn-stage">
<a href="#" class="liquid-btn">
<span>KHÁM PHÁ NGAY</span>
<div class="liquid"></div>
</a>
</div>
body {
margin: 0;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: #09130e;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.liquid-btn {
position: relative;
padding: 18px 48px;
display: inline-block;
text-decoration: none;
text-transform: uppercase;
width: 240px;
text-align: center;
overflow: hidden;
border-radius: 40px;
border: 2px solid #10a37a;
transition: all 0.3s;
}
.liquid-btn span {
position: relative;
z-index: 2;
color: #10a37a;
font-size: 14px;
letter-spacing: 2.5px;
font-weight: 800;
transition: color 0.4s ease;
}
.liquid-btn:hover span {
color: #ffffff;
}
.liquid-btn .liquid {
position: absolute;
top: -80px;
left: 0;
width: 240px;
height: 200px;
background: #10a37a;
box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.3);
transition: 0.5s;
}
.liquid-btn .liquid::after,
.liquid-btn .liquid::before {
content: "";
width: 200%;
height: 200%;
position: absolute;
top: 0;
left: 50%;
transform: translate(-50%, -75%);
}
.liquid-btn .liquid::before {
border-radius: 45%;
background: #09130e;
animation: liquidFlow 5s linear infinite;
}
.liquid-btn .liquid::after {
border-radius: 40%;
background: rgba(9, 19, 14, 0.6);
animation: liquidFlow 10s linear infinite;
}
.liquid-btn:hover .liquid {
top: -120px;
}
@keyframes liquidFlow {
0% { transform: translate(-50%, -75%) rotate(0deg); }
100% { transform: translate(-50%, -75%) rotate(360deg); }
}
// Pure CSS Liquid animation