So I tried to do it and got the code in the codepen.io
And while it works, it has two issues:
At the start of the animation, the edges of the text are visible
As it is a gradient, there isn't a clear division between appeared and disappeared
Can someone help me solve this issues?