Skip to content

Zoom Reveal

Pro

A pinned hero where a photo grows from a small rounded window to the full view as you scroll, while the heading over it rises and fades.

  • Base UI
  • Motion
  • React 19
  • Tailwind CSS 4

Added Nov 10, 2026 · Pro license

Playground

Loading the preview

Props

Needs your Pro API key in GELATIN_UI_PRO_TOKEN. Set it up

Pro itemAPI key required

Zoom Reveal needs a Pro API key

Try the live preview for free. With Pro, the add command above puts the source in your project.

Files it adds
22
More Pro items, one API key
+327
Your coding agent runs it
1 cmd

$79$129once, for life

Already have Pro? Sign in to set up your API key.

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>
PropTypeDefaultDescription
containerRefObject<HTMLElement | null>—The scroll box, when the item scrolls inside one and not with the page.
disabledbooleanfalseRests every layer and stops the work.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

ZoomRevealMedia

<div>
PropTypeDefaultDescription
insetnumber20The window at the start, in % of the screen cut from each side. Default 20.
radiusnumber24The window corner at the start, in px. It goes to 0 at the full screen. Default 24.
zoomnumber0.15How much larger the picture is in the small window: 0.15 is 15%. It settles to 1. Default 0.15.
scrimbooleantrueA 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>
PropTypeDefaultDescription
speednumber1How fast the content rises over the page, so it leaves before the picture: 1 is the designed speed, 0 holds it still. Default 1.
fadebooleantrueFades 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.
  • Put a ZoomRevealMedia with an Image (fill) or a video, then a ZoomRevealContent with the heading.
  • Set the start window with inset (% cut from each side) and radius (px), and the settle with zoom.
  • Set the pin length with a height class on the root. The default is 2.5 views.
  • In a scroll box, pass the box as container and set --parallax-view to its height.
  • For a photo that only moves a little slower than the page, use Parallax Image.
  • For a scene of several layers that move at their own speed, use Parallax.
TabA focus in the faded heading scrolls the page back to the pin start, so the focused control shows.

The photo keeps its alt. The scrim is aria-hidden.

The heading stays in the reading order before the page that follows, and it keeps its controls.

Scroll
none · the window, the zoom, and the heading follow the scroll in the same frame, with no easing

Built with

Installs with Zoom Reveal

Components
Parallax
  1. AddedZoom Reveal, with Parallax.
Open the release