Scroll & Motion
A theatrical hero where a top image panel and a bottom image panel start closed against each other in the middle of the viewport. As the reader scrolls, the top panel translates upward and the bottom translates downward, revealing a centered headline, subtitle, and CTA in the gap. Ideal for product pages that pair two contrasting themes (design + engineering, story + spec, before + after).
Live preview
No extra dependencies. React 18+ and Tailwind CSS v3+ assumed. Save as SplitPanelsHero.tsx.
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/SplitPanelsHero.tsx as a client component. Fixed inset-0 canvas (z-10, bg-white) with a 220vh spacer below to drive scroll. Two horizontal image panels: top absolute at inset-x-0 top-0 h-1/2, bottom absolute at inset-x-0 bottom-0 h-1/2. Both start touching in the middle at scroll 0. As progress goes 0 to 1: top translateY(-45% * p), bottom translateY(45% * p). Between them, a centered content block (headline in black semibold tracking-tight, muted subtitle, blue #2B65F6 CTA pill) fades in and slides up across [0.4, 0.75]. Uses rAF plus lerp (0.1). Props: topImage, bottomImage, headline, subtitle, cta {label, href}. Font-sans, max font-semibold. Single default export. No extra deps.Scroll & Motion
Vertical Split Scroll Hero
Vertical split scroll hero for React, left and right image panels part on scroll to reveal centered content between them.
Scroll & Motion
Zoom Out Reveal Scroll Hero
Zoom-out reveal scroll hero for React, extreme close-up image expands on scroll to reveal the full scene.
Scroll & Motion
Parallax Storytelling Hero Section
Full-screen parallax hero section for React, cinematic image reveal on scroll with a single big headline per panel.
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.
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.
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.
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.
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.