Automate Flows w/ Troy

Multiplane Scroll Hero

Heroes 7

About

Scroll-driven multiplane hero: a photograph split into aligned depth planes flies together far to near as you scroll in, then peels apart nearest-first as you scroll on. Chain several scenes, jump between depth stops, and it respects reduced motion.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Multiplane Scroll Hero to your project and fits it to your theme.

Code

How Multiplane Scroll Hero is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import "@fontsource/instrument-serif/latin-400.css";
import type { CSSProperties } from "react";
import { MultiplaneScrollHero, type MultiplaneScene } from "@/components/ui/multiplane-scroll-hero";

const settings = {
  scrollLength: 4.2,
  showTitles: true,
  showDepthStops: true,
  showCoastScene: true,
  eyebrow: "Multiplane study",
  forestTitle: "Overlook",
  coastTitle: "Shoreline",
};

// Each scene is one photograph split into aligned depth planes (2800x1600 webp, farthest first).
// Photos: Wil Stewart and Karsten Winegeart on Unsplash. Planes cut by AutomateFlows.
const cdn = (id: string) =>
  `https://vucvdpamtrjkzmubwlts.supabase.co/storage/v1/object/public/users/user_3EFgBcaTwAWLVWzXlHvjY47l6Xk/bento/img-${id}.webp`;

const forest: MultiplaneScene = {
  title: "Overlook",
  subtitle: "A forest valley in six planes.",
  description: "a man on a granite dome above a misty forest valley",
  // He sits near the right edge, so narrow frames lean right to keep him in shot.
  focus: "72% 50%",
  phoneFocus: "94% 50%",
  planes: [
    { src: cdn("vk7ggnep"), name: "Clouds", alt: "A man on a granite dome looking over a misty forest valley at dawn" },
    { src: cdn("zaxib61o"), name: "Valley fog" },
    { src: cdn("5tvrr31f"), name: "Distant trees" },
    { src: cdn("tld7tlvc"), name: "Forest slope" },
    { src: cdn("m2ezacas"), name: "Near forest" },
    { src: cdn("5zvdtnxu"), name: "Granite" },
  ],
};

const coast: MultiplaneScene = {
  title: "Shoreline",
  subtitle: "A coastal cliff in six planes.",
  description: "a woman on a cliff path above the Pacific",
  focus: "50% 50%",
  planes: [
    { src: cdn("5j1jm6qf"), name: "Sky", alt: "A woman on a cliff-top path looking out over the sea and a hazy coastline" },
    { src: cdn("rhyqt6yv"), name: "Sea" },
    { src: cdn("2slbq8l8"), name: "Far headland" },
    { src: cdn("5m1rswm9"), name: "Near cliffs" },
    { src: cdn("5986jtor"), name: "Ledge" },
    { src: cdn("v7iipztn"), name: "Walker" },
  ],
};

export default function MultiplaneScrollHeroDemo(props: Partial<typeof settings>) {
  const s = { ...settings, ...props };
  const scenes = [
    { ...forest, title: s.forestTitle },
    ...(s.showCoastScene ? [{ ...coast, title: s.coastTitle }] : []),
  ];
  return (
    <MultiplaneScrollHero
      scenes={scenes}
      scrollLength={s.scrollLength}
      eyebrow={s.eyebrow}
      showTitles={s.showTitles}
      showDepthStops={s.showDepthStops}
      style={{ "--font-display": "\"Instrument Serif\"" } as CSSProperties}
    />
  );
}

Dependencies

More by Automate Flows w/ Troy

View all
  • Business/Sales Dashboard

    Business/Sales Dashboard

    1.5K
  • Adjustable Glass Dashboard

    Adjustable Glass Dashboard

    1.3K
  • Interactive Workflow Blueprint

    Interactive Workflow Blueprint

    701
  • Glassy Coverflow Carousel

    Glassy Coverflow Carousel

    449
  • Liquid Glass Expandable Sidebar

    Liquid Glass Expandable Sidebar

    426
  • Liquid Glass Footer

    Liquid Glass Footer

    279
  • Dimensional Workflow Hero

    Dimensional Workflow Hero

    206
  • KNOCKOUT Landing Page

    KNOCKOUT Landing Page

    191

More in Heroes

View all
  • Agency Hero Section

    Agency Hero Section

    1.1K
  • SaaS Template

    SaaS Template

    2.8K
  • AI SaaS Workflow Hero

    AI SaaS Workflow Hero

    32
  • Cabin To Sky Film Hero

    Cabin To Sky Film Hero

  • Real Estate 3D Hero

    Real Estate 3D Hero

    83
  • Hero

    Hero

    1.4K
  • Responsive Hero Banner

    Responsive Hero Banner

    2.2K
  • Chroma Sense Hero

    Chroma Sense Hero

    21