Sajad Entesari

Slat Shutter Hero

Heroes 125

About

A scroll-driven hero. The first photo is cut into vertical slats that part from the centre outwards to reveal a second full-bleed scene, while the two-line headline hands over line by line. Pass any two images, both headlines, the slat count and the scroll length. Built with Motion and Tailwind, and it falls back to a still hero when reduced motion is on.

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

Code

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

Usage.tsx

import { SlatShutterHero } from "@/components/ui/slat-shutter-hero"

const IMG = "https://cdn.jsdelivr.net/gh/rm-sjent/21st-assets@v1/img/"

export default function SlatShutterHeroDemo() {
  return (
    <div className="w-full bg-white" style={{ fontFamily: "Geist, ui-sans-serif, system-ui, sans-serif" }}>
      <div className="flex h-[60vh] items-end px-6 pb-10 md:px-12">
        <p className="text-[15px] text-black/55">Scroll down</p>
      </div>
      <SlatShutterHero
        coverSrc={`${IMG}hero-dark.jpg`}
        revealSrc={`${IMG}hero-bright.jpg`}
        kicker="Field notes, issue 14"
        coverTitle={["Leave the black sand", "before the light goes"]}
        revealTitle={["Then follow the sun", "south to clear water"]}
        caption="Reynisfjara to the Calanques in eleven days, by ferry, train and one very small boat."
      />
      <div className="h-[60vh]" />
    </div>
  )
}

Dependencies

More by Sajad Entesari

View all
  • Fan Gallery

    Fan Gallery

    84
  • Photo Deck

    Photo Deck

    80
  • Scattered About

    Scattered About

    79
  • Sector Wheel

    Sector Wheel

    75
  • Scroll Fill Headline

    Scroll Fill Headline

    67
  • Timeline Scrubber

    Timeline Scrubber

    58
  • Feature UI Row

    Feature UI Row

    48
  • Morph Island

    Morph Island

    40

More in Heroes

View all
  • Agency Hero Section

    Agency Hero Section

    1.1K
  • Real Estate 3D Hero

    Real Estate 3D Hero

    89
  • Responsive Hero Banner

    Responsive Hero Banner

    2.2K
  • SaaS Template

    SaaS Template

    2.8K
  • AI SaaS Workflow Hero

    AI SaaS Workflow Hero

    36
  • App Integration Celestial Hero

    App Integration Celestial Hero

    17
  • Chroma Sense Hero

    Chroma Sense Hero

    23
  • Hero

    Hero

    1.4K