Back to components
ComponentHeroFree

Parallax Layers Hero React component

A drawn mountain range in depth layers that follow the pointer, with the headline set between the ridges so the near peaks pass in front of it. Takes your own artwork too.

About the Parallax Layers Hero component

Parallax Layers Hero builds depth out of flat layers. Stars, a sun, three ridges and a band of pines all move at their own speed with the pointer, and the headline sits between them so the near mountains pass in front of the letters.

The landscape is drawn in code, so it needs no image files and stays sharp at any size. Pass the layers prop to use your own artwork, with a depth for each layer and a front flag for anything that should cover the title.

When to use it

Use it for outdoor brands, games, travel, events and any landing page that can carry a strong illustration.

For a product screenshot or a busy page, a calmer hero will sell the product better.

Installation

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

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

Or copy the source by hand and install its dependencies:

Install
Copied!
npm install clsx tailwind-merge

More Hero components

Spotlight Cursor Hero
Free
Video Text Mask Hero
Free
Typewriter Search Hero
Free
Split Screen Hero
Free
Phone Fan Hero
Free
Scroll Zoom Media Reveal