Hero Mosaic

A serif headline rises in letter by letter while a five-column photo mosaic fades up. Scrolling scrubs the mosaic: the centre photo widens and the stacked columns lift. Scroll inside the preview.

heroscrolltext revealimages
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 { HeroMosaic } from "./components/HeroMosaic";

// Seven images, left to right:
// outer left, column 2 top, column 2 bottom, centre, column 4 top, column 4 bottom, outer right
const images = [
  { src: "/hero/1.jpg", alt: "" },
  { src: "/hero/2.jpg", alt: "" },
  { src: "/hero/3.jpg", alt: "" },
  { src: "/hero/4.jpg", alt: "" },
  { src: "/hero/5.jpg", alt: "" },
  { src: "/hero/6.jpg", alt: "" },
  { src: "/hero/7.jpg", alt: "" },
];

export function Hero() {
  // Put it at the top of the page. The default font is Cormorant Garamond
  // (Google Fonts); load it or pass fontFamily. Reads window scroll by default;
  // pass scroller={ref} if it lives inside a scrolling element.
  return <HeroMosaic images={images} title={"We offer you\nthe world"} />;
}