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>
)
}
















