Skip to content

Component 025Galleries

Portrait Gallery

Five staggered anime portraits expand on hover, focus, or touch. The selected portrait gains color while a black name label slides into view.

  • Next.js
  • Tailwind CSS
  • TypeScript
Hover a portrait to expand it, or tap to keep it selected.
Loading preview…
Live interactive preview

Quick start

Make it yours.

Save portrait-gallery.tsx in your components folder, then import it below. Use it in a Next.js project with Tailwind CSS.

TSXapp/page.tsx
import PortraitGallery from "@/components/ui/portrait-gallery";

export default function GalleryPage() {
  return <PortraitGallery />;
}

Behind the interaction

The details that make it work.

Designed to explore, ready to adapt.

The reference composition

Original portrait artwork, alternating vertical offsets, dimmed neighboring panels, and delayed name labels reproduce the supplied design.

Every way to explore

Pointer hover previews a portrait; touch and keyboard selection keep it open. Arrow keys move through the collection.

One portable file

Portraits, the Figtree font, and scoped styles are embedded. Pass your own items and selection callback without adding a package.

Keep exploring

View all components