Skip to content

Parallax Pattern

Pro

A grid, dot, or line pattern behind a section that moves slower than the page.

  • 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 Pattern 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
19
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.

Wrap a section. Put its content in ParallaxPatternContent, so only the pattern moves.

stats-section.tsx

ParallaxPattern

<div>
PropTypeDefaultDescription
containerRefObject<HTMLElement | null>—The scroll box, when the item scrolls inside one and not with the page.
pointerbooleanfalseAdds the pointer source: the layers drift toward the mouse over the item. Default false.
disabledboolean—Rests every layer and stops the work.
pattern"dots""grid""hatch"—
speednumber1How far the pattern lags behind the page, as a multiplier of the designed lag (1, the default: 20% slower than the page, so it looks far behind the content). 2 lags twice as much, 0 keeps it with the page, and a negative value runs ahead of it.
depthnumber16px the pattern drifts away from the mouse at the edge of the box, with pointer. Default 16. A negative depth drifts toward the mouse.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

ParallaxPatternContent

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Wrap one section. Put its content in ParallaxPatternContent, so it paints above the pattern.
  • Set the color with --pattern-color (and --pattern-major-color for the grid) on the root.
  • Keep speed near 1. Use 2 to make a screenshot or card on top look nearer.
  • Pass container when the section scrolls inside a box and not with the page.
  • For a pattern that moves on its own with no scroll, use Dot Matrix.
  • For a section that moves in 3D toward the mouse, use Tilt.
Drift
none · 1:1 with the scroll, the pattern moves slower than the page

Built with

Installs with Parallax Pattern

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