I want to use pure css to realize the wave animation effect in the text, the height of the wave can be controlled, and the wave image is not used.
body{
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
span {
font-size: 10em;
-webkit-text-fill-color: rgba(0, 0, 0, .1);
position: relative;
}
span::before{
content: '';
position: absolute;
width: 100%;
height: 100px;
left: 0;
background-color: blueviolet;
z-index: -1
}
span::after{
content: '';
position: absolute;
width: 100%;
height: 100px;
left: 0;
background-color: lightpink;
z-index: -2;
top: 100px;
}
<span>FILL</span>
