Creating a mask group in Figma is straightforward. Follow these simple steps:
-
Position your mask: Place the shape you want to use as your mask behind the layers you want to mask. This is crucial for proper masking. Think of it like placing a stencil behind the image you want to cut out.
-
Select your layers: Select all the layers that will be part of your masked group. Make sure both the mask shape and the layers it will affect are selected.
-
Apply the mask: In the right sidebar, click "More options" and then select "Use as mask." Alternatively, you can use the keyboard shortcut (the specific shortcut may vary depending on your OS). Figma automatically groups the selected layers and applies the mask.
Example: Let's say you have a photograph and a circle. You want to reveal only the portion of the photograph within the circle.
- The circle would be your mask.
- The photograph would be the masked layer.
- Place the circle behind the photograph.
- Select both layers.
- Use the "Use as mask" option to create the masked group.
The bottom-most layer in the mask group acts as the mask itself, defining the visible area for the layers above it. Areas outside the mask shape will be hidden. Remember, you can adjust and edit the elements within the mask group after it's created.