Sajad Entesari

Fan Gallery

Cards 55

About

Photo cards fanned on an arc that you can drag, flick, tap or step with arrows and keys. The fan sizes itself to the screen so every visible card fits with a gap, loops without a seam, autoplays and pauses on hover. The centre card's name and tags sit underneath.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Fan Gallery to your project and fits it to your theme.

Code

How Fan Gallery is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { FanGallery } from "@/components/ui/fan-gallery"

const IMG = "https://cdn.jsdelivr.net/gh/rm-sjent/21st-assets@v1/img/"
const cities = [
  { src: `${IMG}city-lisbon.jpg`, label: "Lisbon", tags: ["Relocation", "Family moves"] },
  { src: `${IMG}city-copenhagen.jpg`, label: "Copenhagen", tags: ["Hiring abroad", "Team setup"] },
  { src: `${IMG}city-tokyo.jpg`, label: "Tokyo", tags: ["New office", "Local entity", "Payroll"] },
  { src: `${IMG}city-singapore.jpg`, label: "Singapore", tags: ["Regional hub", "Founders"] },
  { src: `${IMG}city-newyork.jpg`, label: "New York", tags: ["Expansion", "Senior hires"] },
  { src: `${IMG}city-capetown.jpg`, label: "Cape Town", tags: ["Remote teams", "Contracts"] },
  { src: `${IMG}city-dubai.jpg`, label: "Dubai", tags: ["Private clients", "Residency"] },
]

export default function FanGalleryDemo() {
  return (
    <div className="w-full bg-white" style={{ fontFamily: "Geist, ui-sans-serif, system-ui, sans-serif" }}>
      <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Geist:[email protected]&family=Newsreader:ital,opsz,wght@0,6..72,300..500;1,6..72,300..400&display=swap" precedence="default" />
      <style>{`.font-serif{font-family:"Newsreader","Iowan Old Style","Palatino Linotype",Georgia,serif}`}</style>
      <FanGallery cards={cities} />
    </div>
  )
}

Dependencies

More by Sajad Entesari

View all
  • Slat Shutter Hero

    Slat Shutter Hero

    74
  • Sector Wheel

    Sector Wheel

    59
  • Scattered About

    Scattered About

    54
  • Photo Deck

    Photo Deck

    49
  • Scroll Fill Headline

    Scroll Fill Headline

    44
  • Timeline Scrubber

    Timeline Scrubber

    39
  • Feature UI Row

    Feature UI Row

    25
  • Morph Island

    Morph Island

    24

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.3K
  • Folded Card

    Folded Card

    45
  • Statistics Card 10

    Statistics Card 10

    304
  • Statistics Card 2

    Statistics Card 2

    309
  • Statistics Card 7

    Statistics Card 7

    336
  • CTA Section

    CTA Section

    6
  • Liquid Glass Card

    Liquid Glass Card

    198
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    719