Masks can show certain parts of a layer while concealing the rest. Since no portion of the masked layers is modified or deleted, you can consider masks as non-destructive actions.
Any layer can serve as a mask layer, including vector shapes, text layers, images, groups, frames, etc.
When you create a mask, it includes two parts: the mask layer and the masked layer. The mask layer is positioned below the masked layer, covering its sibling layers along the Z-axis. In the Layers panel, the layer pointed to by the arrow is the mask layer, and the layer crossed by a straight line is the masked layer.
Not all sibling layers on the Z-axis of the mask layer will be covered. The coverage stops at the following layers:
Learn more about parent, child, sibling relationships.
An outline mask refers to a mask layer that covers other layers while also being visible itself.
An alpha mask refers to a mask layer that covers other layers but remains hidden.
Select a layer you want to use as a mask and place it behind all layers that will be masked on the Z-axis.
Select all layers that will be a part of the mask object.
Create a mask using any of the following methods:
a. Click in the toolbar.
b. Right-click on the object, and choose Use as mask.
c. Use the following shortcut keys:
After the operation, all masked layers and the mask layer are placed into a mask group, completing the masking effect.
Tip: To add another layer to an existing mask group, click and drag the layer into the mask group in the Layers panel in the left sidebar.
When using a transparent mask, the opacity of the mask layer will affect the layer being masked.
Only the parts of the mask layer with opacity greater than 0% will display the layers they cover. Parts with 0% opacity or without fill will also hide the corresponding masked layers.
When using an outline mask, the opacity of the mask layer will not affect the display of the masked layers.
You can remove the mask in any of the following ways:
Any portion hidden by the mask will reappear.