Back to components
ComponentEffectFree

Parallax Section React component

A section of floating photos and type that drift at different speeds as it scrolls past, so the layers separate into depth, and lean slightly toward the pointer; works with page scrolling and scroll containers alike.

About the Parallax Section component

Parallax Section gives a flat section real depth: photos and type float at different distances and drift at different speeds as the page scrolls past, so near things move faster than far ones, and the whole scene leans a little toward the pointer.

It measures itself against whatever is scrolling — the page or a scroll box — and only animates while something is actually moving, so it stays smooth and costs nothing at rest.

When to use it

Use it for a portfolio or interior studio's showcase, a product story section, an editorial break between chapters or a landing page hero with a few strong photos.

Keep layers to a handful; three to six give a convincing sense of depth without turning the section into noise.

Installation

Add the Parallax Section component to your project with the shadcn CLI. It lands in components/parallax-section.tsx as plain React + Tailwind CSS source you own and can edit.

Install
Copied!
npx shadcn@latest add @reactframe/parallax-section

Or copy the source by hand and install its dependencies:

Install
Copied!
npm install clsx tailwind-merge

More Effect components

Scroll Snap Sections
Free
Liquid Image Effect
Entrance Reveal
Free
Confetti Show
Image Mask Reveal
Free
Aura Cursor