Back to components
ComponentHeroFree

Split Screen Hero React component

A two-sided hero with a shared headline: two full-bleed photos meet at a seam, and the half under the pointer opens up to show its description and button. Stacks on phones.

About the Split Screen Hero component

Split Screen Hero gives a page two equal front doors. Two full-bleed photos meet at a thin seam under one shared headline, and whichever half the pointer is over opens up to show its description and button.

The seam moves opposite to the pointer, so the half you are reading grows toward you and the pointer never chases the edge. On phones the halves stack, with everything visible.

When to use it

Use it when a site serves two audiences or two products of equal weight, like buyers and sellers, sea and land, or personal and business.

If one option clearly matters more, use a single-focus hero such as Simple Hero Section.

Installation

Add the Split Screen Hero component to your project with the shadcn CLI. It lands in components/split-screen-hero.tsx as plain React + Tailwind CSS source you own and can edit.

Install
Copied!
npx shadcn@latest add @reactframe/split-screen-hero

Or copy the source by hand and install its dependencies:

Install
Copied!
npm install clsx tailwind-merge

Related components

Video Text Mask Hero
Free
Scroll Zoom Media Reveal
Parallax Layers Hero
Free
Spotlight Cursor Hero
Free
Payment Calendar
Free
Contextual Hints Panel
Free