Back to components
ComponentGalleryFree

Gallery Flow React component

A gallery of scattered, gently drifting image cards with random rotation, cursor repel/attract mode, and a click-to-open lightbox.

About the Gallery Flow component

Gallery Flow is a free gallery of scattered image cards that drift slowly in one direction, each at a slight random angle and overlapping the next. The cursor can push cards away (repel) or pull them in (attract), and clicking a card opens it in a lightbox.

Drift direction and speed, card size, rotation, overlap, shadow, corner radius and pause-on-hover behavior are props.

When to use it

Use it for a relaxed, scrapbook-like collection: travel photos, mood boards, event memories or a behind-the-scenes section.

Installation

Add the Gallery Flow component to your project with the shadcn CLI. It lands in components/gallery-flow.tsx as plain React + Tailwind CSS source you own and can edit.

Install
Copied!
npx shadcn@latest add @reactframe/gallery-flow

Or copy the source by hand and install its dependencies:

Install
Copied!
npm install clsx tailwind-merge

More Gallery components

Gallery Curve
Mood Gallery
Photo Album
Free
Gallery Expand
Masonry Photo Gallery
Free
Cylinder Gallery
Free