Scroll & Motion

Parallax Storytelling Hero Section

Three full-viewport panels stacked down the page. Each panel scrolls with a strong parallax offset between the background image and the foreground text. One large headline per panel. Built for editorial hero sections, product story pages, and long-form landing pages where you want cinematic pacing without shipping a video file.

Live preview

Loading preview

Requires framer-motion. React 18+ and Tailwind CSS v3+ assumed. Save as ParallaxStorytellingSection.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 a React + Tailwind component named ParallaxStorytellingSection.tsx. It renders three full-viewport panels stacked vertically. Each panel has a background image and a headline plus paragraph of copy centered over it. As the user scrolls, the background image within each panel translates upward at 30 percent of the scroll speed (parallax) while the text fades and translates in from below when the panel enters the viewport. Use framer-motion useScroll and useTransform for the parallax. Text: font-sans, font-medium max, tracking-tight, white color, drop-shadow for legibility. Accept a panels prop of shape { image: string, eyebrow: string, headline: string, body: string }[] with a default of three panels. Respect prefers-reduced-motion. Ensure zero layout shift and no horizontal scroll on 375px width. Single default export, no extra dependencies beyond react and framer-motion.

How to use it

  1. Use as the opening section of a product story, editorial landing page, or long-form article.
  2. Works with any three (or more) full-bleed images that share a mood — the imagery carries the copy.
  3. Responsive from phone to desktop. Motion pauses under reduced-motion settings.

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.