Kedhareswer Naidu

Hover Expand Gallery

Galleries 77

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

    3.3K
  • GitHub Contribution Graph 3D Heatmap

    GitHub Contribution Graph 3D Heatmap

    1.9K
  • Halftone Wordmark Footer

    Halftone Wordmark Footer

    1.5K
  • Morph Gallery

    Morph Gallery

    1.5K
  • Hanging Polaroid Image Carousel

    Hanging Polaroid Image Carousel

    940
  • Glass Cards

    Glass Cards

    747
  • Animated Features Bento with Live Diagrams

    Animated Features Bento with Live Diagrams

    689
  • Tiger Tear Reveal

    Tiger Tear Reveal

    680

More in Galleries

View all
  • Animated Gallery

    Animated Gallery

    1.5K
  • Editorial Collage Hero

    Editorial Collage Hero

    458
  • Image Gallery

    Image Gallery

    1.4K
  • Thumbnail image viewer

    Thumbnail image viewer

    64
  • Elastic Gallery

    Elastic Gallery

    958
  • 3D Parallax Unfurling Gallery

    3D Parallax Unfurling Gallery

    1K
  • Img Sphere

    Img Sphere

    2.1K
  • Shared Element Gallery

    Shared Element Gallery

    446