> For the complete documentation index, see [llms.txt](https://docs.realmacsoftware.com/elements-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.realmacsoftware.com/elements-docs/using-elements/components/styling-and-effects/mask.md).

# Mask

The Mask component clips its child content with an SVG or a configurable gradient. Use it to create shaped images, soft fades, or decorative edge treatments without editing the original content.

### How to Use Mask

You’ll find Mask under **Media** in the Components list.

1. Drag **Mask** onto the page.
2. Place the content to be masked inside it.
3. Choose SVG, Edge, Linear, or Radial under **Mask → Type**.
4. Configure the controls shown for that mask type.
5. Preview the result at each breakpoint.

### Component Settings

#### Mask

**Type**

* **None** — Applies no mask. This is the default.
* **SVG** — Uses an SVG resource as the mask.
* **Edge** — Fades one or more edges.
* **Linear** — Creates a straight gradient mask.
* **Radial** — Creates a circular or elliptical gradient mask.

**SVG**

* **SVG** — Selects the mask resource.
* **Mode** — Uses Alpha or Luminance. Alpha is the default.
* **Size** — Offers Auto, Contain, Cover, or Custom. Contain is the default.
* **Custom Size** — Appears for Custom and defaults to `100% 100%`.
* **Position** — Anchors the mask to the centre, an edge, or a corner. Centre is the default.
* **Repeat** — Offers No Repeat, Repeat, Horizontal, Vertical, Round, or Space. No Repeat is the default.

Opaque areas of the SVG reveal the wrapped content.

**Edge**

Choose Top, Right, Bottom, Left, Horizontal, or Vertical under **Side**. Bottom is the default. **From** and **To** set the fade range and default to 75% and 100%.

**Linear**

**Angle** defaults to 45°. **From** and **To** set the fade range and default to 10% and 90%.

**Radial**

**Size** offers Full, Closest Side, Closest Corner, Farthest Side, or Farthest Corner. Full is the default. **Position** defaults to Centre. **From** and **To** default to 70% and 100%.

### Accessibility

Masking should be decorative. Do not hide text or controls that visitors need to understand or operate the page.

### Tips and Best Practices

* **Use simple SVGs:** Clear black or opaque shapes produce predictable masks.
* **Check responsive crops:** Position and sizing may need different values at smaller breakpoints.
* **Keep controls visible:** Avoid masking interactive content near its hit area.

### Related Components

* [Image](/elements-docs/using-elements/components/content-and-media/image.md) — Includes a simpler SVG mask option for a single image.
* [SVG](/elements-docs/using-elements/components/content-and-media/svg.md) — Displays and styles vector artwork directly.

| Common Control                                                                                                     | Description                                                             |
| ------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------- |
| [Link](/elements-docs/using-elements/components/common-controls/link.md)                                           | Link to a page, resource, anchor, email address, or website.            |
| [Layout](/elements-docs/using-elements/components/common-controls/layout.md)                                       | Control positioning, stacking, visibility, overflow, and isolation.     |
| [Sizing](/elements-docs/using-elements/components/common-controls/sizing.md)                                       | Set width, height, and responsive size constraints.                     |
| [Spacing](/elements-docs/using-elements/components/common-controls/spacing.md)                                     | Add responsive margin and padding.                                      |
| [Typography & Text Styles](/elements-docs/using-elements/components/common-controls/typography-and-text-styles.md) | Control fonts, text spacing, decoration, colour, and semantic wrappers. |
| [Backgrounds](/elements-docs/using-elements/components/common-controls/backgrounds.md)                             | Apply colour, image, gradient, SVG, video, and hover backgrounds.       |
| [Transitions](/elements-docs/using-elements/components/common-controls/transitions.md)                             | Choose what animates and set its timing curve, duration, and delay.     |
| [Effects](/elements-docs/using-elements/components/common-controls/effects.md)                                     | Apply shadows, opacity, and hover effects.                              |
| [Filters](/elements-docs/using-elements/components/common-controls/filters.md)                                     | Apply blur, brightness, saturation, shadow, and backdrop effects.       |
| [Transforms](/elements-docs/using-elements/components/common-controls/transforms.md)                               | Scale, rotate, move, and skew components.                               |
| [Borders](/elements-docs/using-elements/components/common-controls/borders.md)                                     | Set border style, colour, opacity, width, radius, and hover states.     |
| [Advanced](/elements-docs/using-elements/components/common-controls/advanced.md)                                   | Add CSS classes and IDs, or change supported HTML tags.                 |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.realmacsoftware.com/elements-docs/using-elements/components/styling-and-effects/mask.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
