I created an SVG mask animation. However, I am facing an issue with the edges of the SVG appearing jagged. There is a slight black edge around the mask during the animation, which affects its quality compared to animated GIFs. I expected cleaner results using an SVG.
I am looking for a solution to achieve softer edges. I am open to using a PNG mask or applying filter effects if necessary. Any suggestions would be appreciated.
<mask id="text-mask">
<use x="0" y="0" xlink:href="#text" opacity="1" fill="#fff"/>
</mask>
<use x="0" y="0" xlink:href="#text" fill="#0d0d0d"/>
<rect class="water-fill" mask="url(#text-mask)" fill="url(#water)" x="-400" y="0" width="6000" height="650"/>