Sajad Entesari

Slat Shutter Hero

Heroes 2

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
  • Sector Wheel

    Sector Wheel

    5
  • Torn Portrait Scroll

    Torn Portrait Scroll

    3
  • Scattered About

    Scattered About

    1
  • Scroll Fill Headline

    Scroll Fill Headline

    1
  • Bento Mini UI

    Bento Mini UI

    1
  • Morph Island

    Morph Island

    1
  • Timeline Scrubber

    Timeline Scrubber

    1
  • Feature UI Row

    Feature UI Row

More in Heroes

View all
  • Responsive Hero Banner

    Responsive Hero Banner

    2.2K
  • SaaS Template

    SaaS Template

    2.7K
  • Hero

    Hero

    1.3K
  • Centered Hero with Image Fan

    Centered Hero with Image Fan

    1.1K
  • Hero with group of images, text and two buttons

    Hero with group of images, text and two buttons

    440
  • Editorial Collage Hero

    Editorial Collage Hero

    501
  • Aero Hero-3

    Aero Hero-3

    614
  • Hero 03

    Hero 03

    372