Sajad Entesari

Fan Gallery

Cards 17

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
  • Sector Wheel

    Sector Wheel

    34
  • Slat Shutter Hero

    Slat Shutter Hero

    25
  • Timeline Scrubber

    Timeline Scrubber

    16
  • Scroll Fill Headline

    Scroll Fill Headline

    13
  • Morph Island

    Morph Island

    13
  • Scattered About

    Scattered About

    11
  • Torn Portrait Scroll

    Torn Portrait Scroll

    8
  • Bento Mini UI

    Bento Mini UI

    3

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.3K
  • Statistics Card 7

    Statistics Card 7

    327
  • Statistics Card 2

    Statistics Card 2

    305
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    621
  • Card Studio

    Card Studio

    5
  • The Item one

    The Item one

    4
  • Card

    Card

    9
  • Weather Card

    Weather Card

    65