Skip to content

Layered Scene

Pro

A hero landscape of drawn layers (sky, sun, ridges, trees) that move at their own speeds as the page scrolls and drift with the mouse.

  • 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

Layered Scene 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 headline in the scene.

landing-hero.tsx

LayeredScene

<div>
PropTypeDefaultDescription
range"page""pin""view""page"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.
pointerboolean—Adds the pointer source: the layers drift toward the mouse over the item. Default false.
disabledboolean—Rests every layer and stops the work.
seednumber7The seed of the ridges and trees: the same seed draws the same scene. Default 7.
fadebooleantrueFades the bottom of the scene into the page color. Default true.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Put the headline and the actions in as children: they stay on the page and the planes move behind them.
  • Keep range="page" (default) for a hero at the top; use range="view" for a scene further down.
  • Add pointer to let the planes drift with the mouse.
  • Change seed for other ridges and trees; the same seed draws the same scene.
  • Set fade={false} for a scene in a framed box with its own edge.
  • For your own pictures as layers, use Parallax.
  • For a photo that moves slower than the page, use Parallax Image.

The planes are hidden from screen readers; the children stay in the reading order.

Planes
none · each plane follows the scroll at its own speed in the same frame, with no easing
Pointer
none · with `pointer`, each plane drifts toward the mouse at its own depth

Built with

Installs with Layered Scene

Components
Parallax
  1. AddedLayered Scene, with Parallax.
Open the release