Kedhareswer Naidu

Hover Expand Gallery

Galleries 99

About

Hover expand image gallery accordion: a row of hairline-separated panels with vertical labels, where the hovered or tapped panel grows to reveal its image while the rest stay rail-width. Below 1024px it becomes a vertical accordion. For portfolios and case studies. Pure CSS, no animation library.

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

Code

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

Usage.tsx

"use client"

import HoverExpandGallery from "@/components/ui/hover-expand-gallery"

const settings = {
  railWidth: 64,
  maxOpenWidth: 520,
  duration: 620,
}

export default function Demo(props: Partial<typeof settings>) {
  const s = { ...settings, ...props }
  return (
    <HoverExpandGallery
      railWidth={s.railWidth}
      maxOpenWidth={s.maxOpenWidth}
      duration={s.duration}
    />
  )
}

More by Kedhareswer Naidu

View all
  • Glassmorphism Folder Cards

    Glassmorphism Folder Cards

    4.6K
  • Halftone Wordmark Footer

    Halftone Wordmark Footer

    2.1K
  • GitHub Contribution Graph 3D Heatmap

    GitHub Contribution Graph 3D Heatmap

    2K
  • Morph Gallery

    Morph Gallery

    1.8K
  • Food Menu Scroll Carousel

    Food Menu Scroll Carousel

    1.3K
  • Hanging Polaroid Image Carousel

    Hanging Polaroid Image Carousel

    1.2K
  • Animated Features Bento with Live Diagrams

    Animated Features Bento with Live Diagrams

    1.2K
  • Flipping Website Screenshot Deck

    Flipping Website Screenshot Deck

    805

More in Galleries

View all
  • Animated Gallery

    Animated Gallery

    1.5K
  • Thumbnail image viewer

    Thumbnail image viewer

    91
  • Image Gallery

    Image Gallery

    94
  • Editorial Collage Hero

    Editorial Collage Hero

    487
  • Img Sphere

    Img Sphere

    2.2K
  • Folded Card

    Folded Card

    34
  • Elastic Gallery

    Elastic Gallery

    1.1K
  • Astryx Aspect Ratio

    Astryx Aspect Ratio

    3