Is there an expression to have masks adapt to a sourceRectAtTime text box?
I have looked everywhere for an answer to my problem and I cant find it anywhere.
I am making a lower third template to use on future projects that involves a shape that adapts to whatever text is written using sourceRectAtTime.
I wanted to make a unique animation and what I came upon was to have the text reveal itself left to right with a mask of the same shape and text (with inverted colors) leading the animation. (see video for visual representation)
Following that mask I have a mask of just the original text following that mask.
Whenever I change the text size obviously the box changes size so I have to resize all of the masks and the keyframes of those 2 masks to make the animation work.
MY QUESTION IS:
Is there a way to make those two masks adapt to the text boxes so that they can just resize to the beginning and end of the shapes automatically with the keyframes adapting to the length as well making the animation the same speed always.
I havent read anything about a masking being able to adapt to a shape so I am unsure whether this is possible.
Let me know thanks!
I am using After Effects CC 2018

<!-- Generator: Adobe Illustrator 22.1.0, SVG Export Plug-In --><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/" x="0px" y="0px" width="4369px" height="3000px" viewBox="0 0 4369 3000" style="enable-background:new 0 0 4369 3000;" xml:space="preserve"><defs></defs><image style="overflow:visible;" width="4369" height="3000" xlink:href="DAECA475.jpg" ></image></svg>
