Gallery 40 - Stacked cards that fan out on scrollPro

A pinned deck of photo cards that starts as a neat stack and fans into an arc as the visitor scrolls; renders pre-fanned with reduced motion.

About Gallery 40

A pinned deck of photo cards that starts as a neat stack and fans into an arc as the visitor scrolls; renders pre-fanned with reduced motion.

Gallery 40 is a pro gallery block for React, built on shadcn/ui and Tailwind CSS with motion animations that respect reduced-motion settings. It ships as 81 lines of TypeScript you own: every piece of copy is a prop with a sensible default, so you can drop it in and replace the content without touching the layout.

  • stack
  • fan
  • scroll-linked
  • sticky
  • cards

Installation

  1. Add the Chocolate UI registry to your components.json (see the installation guide).
  2. Run the shadcn CLI:
npx shadcn@latest add @chocolate/gallery-40

Dependencies installed automatically: motion.

Uses: reveal, use-reduced-motion, utils.

Usage

import Gallery40 from "@/components/blocks/gallery-40"

export default function Page() {
  return <Gallery40 />
}

FAQ