The reference composition
Original portrait artwork, alternating vertical offsets, dimmed neighboring panels, and delayed name labels reproduce the supplied design.
Component 025Galleries
Five staggered anime portraits expand on hover, focus, or touch. The selected portrait gains color while a black name label slides into view.
Quick start
Save portrait-gallery.tsx in your components folder, then import it below. Use it in a Next.js project with Tailwind CSS.
import PortraitGallery from "@/components/ui/portrait-gallery";
export default function GalleryPage() {
return <PortraitGallery />;
}Behind the interaction
Original portrait artwork, alternating vertical offsets, dimmed neighboring panels, and delayed name labels reproduce the supplied design.
Pointer hover previews a portrait; touch and keyboard selection keep it open. Arrow keys move through the collection.
Portraits, the Figtree font, and scoped styles are embedded. Pass your own items and selection callback without adding a package.
Keep exploring
A grid of city photographs flips tile by tile into one scene, then unfolds back into the collection.
Ten glowing isometric city scenes drawn in SVG, from an office tower and a harbour crane to an airport, a power grid and a night diner. Every figure has its own controls, live status line, and six glow colours in dark or light.
Hover or focus a portrait to expand it. Use the left and right arrow keys, Home, or End to move between portraits. Click, tap, Enter, or Space to keep a portrait selected.