Selected Work Rail
- from @beste-ui
A pinned scroll feature section for a design studio built on the scroll-rail component: the eyebrow, heading, intro, an Arrow Pill and an underline link stay fixed in a header row while a rail of large project cards slides sideways beneath as the page scrolls. Each card is a link with a cover photograph that drifts inside its frame, the client, year, a one-line summary and the disciplines, and it dims gently until it reaches the middle. A closing panel with a project count and an Arrow Pill ends the rail, and a thin hairline under the rail shows how far along it is. Every rail setting passes through the rail prop. Reduced motion turns the rail 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/feature314Registry dependencies1
- button