Gallery Rail Hero
- from @beste-ui
A pinned scroll hero for a photography exhibition built on the gallery-rail component: the heading, intro, an Arrow Pill and an underline link hang first on a long gallery wall, and as the page scrolls the wall travels sideways past large photographs in frames of different proportions, each with a title and credit beneath. Every photograph moves a little slower than its frame and each frame grows slightly as it reaches the middle. Every wall setting passes through the gallery prop. Reduced motion turns the wall into a plain horizontal scroll.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @beste-ui/hero251Registry dependencies1
- button