Skip to content

Component 021Galleries

Gallery Flip

A grid of city photographs flips tile by tile into one scene, then unfolds back into the collection.

  • Next.js
  • Tailwind CSS
  • TypeScript
Select a photo to reveal it across the grid; return to choose another.
Loading preview…
Live interactive preview

Quick start

Make it yours.

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

TSXapp/page.tsx
import GalleryFlip from "@/components/ui/gallery-flip";

export default function Example() {
  return <GalleryFlip />;
}

Behind the interaction

The details that make it work.

Designed to explore, ready to adapt.

A ripple of photographs

A staggered three-dimensional flip travels through the photo grid.

Choose the moment

Select individual tiles with a pointer, touch, or keyboard.

Make it personal

Use your own images with the included standalone source.

Keep exploring

View all components