Put the photo in the media part and the heading in the content part.
The sample also uses Image. One command adds them with this item:
trail-hero.tsx
ZoomReveal
<div>ZoomRevealMedia
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| inset | number | 20 | The window at the start, in % of the screen cut from each side. Default 20. |
| radius | number | 24 | The window corner at the start, in px. It goes to 0 at the full screen. Default 24. |
| zoom | number | 0.15 | How much larger the picture is in the small window: 0.15 is 15%. It settles to 1. Default 0.15. |
| scrim | boolean | true | A dark dim over the picture while the heading is on it, so the heading reads; it clears as the window grows. Default true. Without it, give the heading its own backdrop. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
ZoomRevealContent
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| speed | number | 1 | How fast the content rises over the page, so it leaves before the picture: 1 is the designed speed, 0 holds it still. Default 1. |
| fade | boolean | true | Fades the content out over the first 40% of the pin. It takes no clicks once faded. Default true. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
| Tab | A focus in the faded heading scrolls the page back to the pin start, so the focused control shows. |
|---|
Built with
Installs with Zoom Reveal
- Components
- Parallax











