Typography · 25 of 33
Liquid Fill
Text fills up like liquid on hover
<h2 class="liquid-text">Liquid Fill</h2>
.liquid-text {
font-size: 3.5rem;
font-weight: 600;
text-align: center;
background: linear-gradient(to top, #7c5cff 50%, #6b6b80 50%);
background-size: 100% 200%;
background-position: 0 0%;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
transition: background-position 0.5s ease;
cursor: pointer;
}
.liquid-text:hover {
background-position: 0 100%;
}