Hero Scroll Grid

A pinned intro panel beside a grid of screenshots tilted in 3D. As the hero scrolls out, the grid flattens and straightens, the panel retracts to the left edge and the columns drift at different speeds. Scroll inside the preview.

heroscroll3dparallax
Preview

Installation

Copy the install prompt

Paste it into Claude Code, Cursor or any coding agent inside your project. It includes the steps, a usage example and the full source.

Usage

Example
import { HeroScrollGrid } from "./components/HeroScrollGrid";

// Four columns of screenshots. width/height set each card's aspect ratio.
const columns = [
  [{ src: "/shots/a1.png", width: 800, height: 750 }, { src: "/shots/a2.png", width: 800, height: 533 }],
  [{ src: "/shots/b1.png", width: 800, height: 735 }, { src: "/shots/b2.png", width: 800, height: 693 }],
  [{ src: "/shots/c1.png", width: 800, height: 700 }, { src: "/shots/c2.png", width: 800, height: 623 }],
  [{ src: "/shots/d1.png", width: 800, height: 683 }, { src: "/shots/d2.png", width: 800, height: 533 }],
];

export function Hero() {
  // Reads window scroll by default; pass scroller={ref} inside a scrolling element.
  return (
    <HeroScrollGrid columns={columns}>
      <h1>Your headline goes here</h1>
      <p>A short supporting line.</p>
      <a href="/signup">Get started</a>
    </HeroScrollGrid>
  );
}