To create motion in After Effects, you need to activate the layer's properties linked to elements added to the Timeline. However, while you may initially think you can only animate imported illustrations or shapes created with the software’s tools, it is handy to know that After Effects can also give life to your masks.
This trick is useful when you want to enclose a portion of your videos inside a particular figure for just a moment and then include more parts as the shape opens up. Follow these steps to expand and add motion to a mask in After Effects.
Now that you have the canvas divided between the two backgrounds, draw a Mask on the first solid you created:
If you followed the steps correctly, you should see two keyframes on the Timeline and a change of size in your mask as well.
To see the motion you have just created, place the Time Indicator at the beginning of your Timeline again and hit the spacebar to see how your mask progressively expands.
It's ok if you see that your mask has two colors, because you created two different solids at the beginning, remember? For this reason, your mask will take into account the first background until its endpoint, and then it will grab part of the second one.
To open even more the masking, repeat the last four steps but in the Mask Expansion property, and increase its values when you are about to generate the second keyframe on the Timeline. Then not only will your mask stretch horizontally, but it will scale up to take more parts of your video.
Use this animation trick when you want to select a part of your footage and gradually open its visibility.