Masking Dynamic Text

Is there a way you can mask dynammic text? or crate some kind of curtain effect with it?

Thanks for your help :esmirk: