Skip to content

Parallax Image

Pro

A framed picture that moves slower than the page and never shows its edge. Text can sit on top.

  • 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

Parallax Image 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
28
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.

Give the picture and its file size. Put text over it as children.

trail-photo.tsx

ParallaxImage

<div>
PropTypeDefaultDescription
range"page""pin""view"—Where the scroll source counts from: view (default, the item's own pass through the view), page (the page scroll from its top, for a hero), or pin (the px a tall section with a sticky stage has pinned). See PARALLAX_RANGES.
containerRefObject<HTMLElement | null>—The scroll box, when the item scrolls inside one and not with the page.
disabledboolean—Rests every layer and stops the work.
srcRequiredstring—The picture file.
altRequiredstring—Say what the picture shows. "" for a picture that only decorates.
widthnumber—The real size of the file in px. With both, the frame takes its ratio before it loads.
heightnumber—
sizesstring—The sizes of the srcset (see Image).
preloadbooleanfalseLoads at once with a high priority: a picture above the fold. Default false (lazy).
overscannumber0.15How much taller the picture is than the frame, on each side, as a share of the frame height: 0.15 (default) adds 15% above and below. The picture travels this whole margin over its pass, so a larger overscan is a stronger parallax, and the edge never shows.
zoomnumber0Extra scale at both ends of the pass: 0.1 starts at 110% and settles to 100% at the middle. Default 0. A value below 0 counts as 0: a picture smaller than its frame shows its edge.
childrenReactNode—Content over the picture (a caption, a heading). It fills the frame; place it with classes.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Give src, alt, and the file width and height, so the frame keeps the ratio before the file loads.
  • Set the frame ratio with an aspect-* class when the frame must differ from the file. The class wins.
  • Raise overscan for a stronger move, and add a small zoom (0.05 to 0.12) for a slow settle.
  • Put text over the picture as children: it fills the frame and stays still.
  • For a picture that does not move, use an Image.
  • For a scene of several moving layers, use Parallax.

The picture keeps its alt. Pass alt="" for a picture that only decorates.

Text in children stays in the reading order after the picture and does not move.

Scroll
none · the picture follows the scroll in the same frame, with no easing

Built with

Installs with Parallax Image

Components
Image,Parallax
  1. AddedParallax Image, with Image, Parallax.
Open the release