Put the photo, the window, and the heading in the root.
The sample also uses Image. One command adds them with this item:
brand-hero.tsx
MaskReveal
<div>MaskRevealMedia
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| zoom | number | 0.15 | How much larger the picture is at the start: 0.15 is 15%. It settles to 1. Default 0.15. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
MaskRevealWindow
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| variant | "arch""burst""circle""text" | "circle" | The window: circle (default), arch, burst, or text (the text of the children). |
| growth | number | — | How many times larger the window is at the end of the growth. Default per variant: circle 10, arch 14, burst 13, text 60. |
| origin | readonly [number, number] | — | The point the window grows from, as shares of its box ([0.5, 0.5] is the middle). For a text, put it on a thick letter stroke, not in a gap or a letter hole. Not mirrored in right to left: it is a place on the outline. |
| outlined | boolean | false | Draws a thin line on the window edge at the start; it fades out as the window grows. |
| children | string | — | With variant="text": the text of the window (the brand name). Plain text only. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
MaskRevealContent
<div>| Tab | Moves into the content. When the content has faded, the page jumps back to the start of the pin. |
|---|
Built with
Installs with Mask Reveal
- Components
- Parallax











