Scroll & Motion

Vertical Split Scroll Hero

Companion to the horizontal Split Panels Hero, but split on the vertical axis. Two image panels sit side by side (each 50% of the viewport). As the reader scrolls, the left panel translates left and the right panel translates right, revealing centered content that scales up as the gap widens. Ideal for product pages that pair two disciplines, two aesthetics, or two audiences.

Live preview

Loading preview

No extra dependencies. React 18+ and Tailwind CSS v3+ assumed. Save as VerticalSplitHero.tsx.

Or rebuild it with a prompt

Paste the prompt into the tool you already use. Each version is written specifically for that tool, matched to the same design constraints so the output stays consistent.

Build components/VerticalSplitHero.tsx as a client component. Fixed inset-0 canvas (z-10, bg-white) with a 220vh spacer below driving scroll. Two vertical image panels: left absolute inset-y-0 left-0 w-1/2 overflow-hidden, right absolute inset-y-0 right-0 w-1/2 overflow-hidden. At scroll 0 they meet at the vertical midline. Animate: left transform translateX(-45% * p), right translateX(45% * p). Centered content block (absolute inset-0 flex column center, pointer-events-none) with an eyebrow (11px uppercase 0.08em tracking, muted grey), headline (26-48px semibold tracking-tight black max-w-2xl), subtitle (13-14px muted grey max-w-md), and a blue #2B65F6 CTA pill (pointer-events-auto). Content fades in and scales from 0.94 to 1 across [0.4, 0.75]. rAF plus lerp (0.1). Font-sans, max font-semibold. Props: leftImage, rightImage, eyebrow, headline, subtitle, cta. Single default export.

How to use it

  1. Great for product pages that pair two disciplines, two audiences, or two aesthetics.
  2. Works with any two images that read as a pair — the split makes the pairing the point.
  3. Responsive from phone to desktop. Motion pauses under reduced-motion.

Other components you might like

Related prompts for scroll & motion

Frequently asked questions

How do I use this component in my project?+

Copy the source file from the "Copy code" button and save it into your components folder. Add any listed dependencies (React 18 or later and Tailwind CSS v3 or later are always required, plus framer-motion or gradflow if the component lists them). Import and render the component wherever you want it. Every prop is optional and defaulted.

Can I customise the design and copy?+

Yes. Every component takes props for its content (headline, subtitle, image URL, CTA, and so on) and uses Tailwind classes throughout, so you can restyle without touching the logic. For deeper design changes, paste the prompt into Claude Code, Cursor, Lovable, Replit, or Codex and describe your brand tokens, spacing, or motion tweaks.

Are the components free for commercial use?+

Yes. Everything on this page is free to copy, adapt, and ship in commercial projects. No attribution required. If you post a public showcase we always appreciate a link back.

Which AI coding tool works best for these components?+

All five prompts produce the same design. Claude Code and Codex are best when you want the component slotted into a project with existing conventions. Cursor is ideal for editing inside your IDE with the file open. Lovable and Replit spin up a fresh preview fastest, useful for a quick play.

Do these work with Next.js, Vite, and Remix?+

Yes. The source files are plain React 18 client components. They run on any framework that supports React 18 and Tailwind CSS v3. If a component needs the "use client" directive (all of them do here, since they use hooks), keep the directive at the top of the file when you paste.