Back to AIX Effects LibraryQA Verified · Synced
Layout & Gallery/<MasonryReflowGallery />·Intermediate

Filterable Masonry Reflow Grid

Ideal for portfolio index filters, searchable feature directories, and product category showcases.

Next.js 16+React 19TypeScriptTailwind CSSFramer MotionFramer Motion
Motion
Spring Axis
FLIP · 60fps
Layout
Grid Projection
Auto Span
Motion
Exit PopLayout
AnimatePresence
Layout
Zero Reflow Clutter
TypeScript
Framer Motion FLIP · 3 cols

Toggle category pills to watch masonry tiles reflow smoothly.

Installation

npm install framer-motion
framer-motion^13.4.0

Coordinates AnimatePresence popLayout and smooth FLIP grid reflow.

Usage

import { MasonryReflowGallery } from '@/components/effects/library/layout/MasonryReflowGallery'

<MasonryReflowGallery
  categories={['All', 'Motion', 'Layout']}
  items={[
    { id: '1', category: 'Motion', title: 'Spring Card', meta: '60fps' },
    { id: '2', category: 'Layout', title: 'Grid Tile', meta: 'Auto' },
  ]}
/>

Props & API Reference

4 props
PropTypeDefaultDescriptionEffect
columns2 | 33Grid column count above mobile breakpoints.Controls column density.
stiffnessnumber340Spring stiffness controlling FLIP tile glide.Tunes reorder snappiness.
dampingnumber28Spring damping preventing overshoot oscillation.Controls settle firmness.
accentColorstring'#536dfe'Active filter button fill and item tag tint.Tints active tag accents.

More in Layout & Gallery

View All 36 →
Click any grid card to expand focus span
stiffness: 340 · damping: 28

Expandable Grid

Interactive 2-column Bento showcase that expands selected cards smoothly with spring reflow.

View Details
Hover or focus any card below
01 · OPTIC
Precision Card

Sharp contrast when focused.

02 · DEPTH
Neighbor Dimming

Sibling cards step back calmly.

03 · PURE CSS
Zero Packages

Works across mouse, touch & keyboard.

blur 2.5px · dim 0.42 · scale 1.03

Focus Gallery

Focused card sharpens and elevates cleanly while unselected siblings softly dim and blur.

View Details
Hover horizontally or drag slider
01 · Foreground
Primary Layer
02 · Midground
Offset Plane
03 · Horizon
Deep Axis

Depth Parallax Gallery

Three-layer card deck translating horizontally at proportional depth speeds inside perspective space.

View Details