I have a problem with masking and wanted to ask for input. I have a text object that I want to be a regular text because I need it to be dynamic, so I can change it.
Furthermore, I need the text to be revealed by an animation like int the GIF below. The optimal would be to do the reveal with an image like the top animation.
The lower one is easily done by putting it in a group and set overflow hidden on the group and then animate that. BUT that only works for a reveal that is directed top down, if I do the reverse the text moves when run.
There are several ways of doing masking in HTML/CSS but I can't find a good solution in HYPE. (or in normal HTML/CSS)
And write your text into a canvas you then used to generate an image.
Then you can use your CSS Mask approach. Just one idea… You can also use something like html2canvas to convert HTML to a canvas, but that will add the full "weight" of that particular library to your project. Not sure if that approach is the best but it is one answer .
--
Another method would be to have the text in an SVG and play around with a composite filter
Thanks for the answer! I'll have a look at your suggestions.
BTW, I found your HypeClipPath lib and that solved the shape/vector thing.
Thanks for that one