How to make overlays disappear/appear while moving?

So I’m trying to make this text overlay appear while moving in my story. How do you do these things??

Maybe capacity??

Change the opacity & shift bby.