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

Expandable Grid

Combines native semantic button cards with automatic layout projection for responsive showcase feature grids.

Next.js 16+React 19TypeScriptTailwind CSSFramer Motion
Click any grid card to expand focus span
stiffness: 340 · damping: 28

Click any tile inside grid to expand and watch siblings reflow.

Installation

npm install framer-motion
framer-motion^13.4.0

Automatically interpolates column span & reflow geometry.

Usage

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

<ExpandableGrid
  items={[
    { id: '01', code: '01', title: 'Adaptive Layout', summary: 'Mở rộng vùng đọc trọng tâm theo lựa chọn.' },
    { id: '02', code: '02', title: 'Spring Motion', summary: 'Lò xo co giãn tự nhiên giữa các hàng cột.' },
    { id: '03', code: '03', title: 'Zero Jitter', summary: 'Bố cục luôn cân đối trên Desktop & Mobile.' },
  ]}
  defaultActiveId="01"
/>

Props & API Reference

4 props
PropTypeDefaultDescriptionEffect
itemsExpandableGridItem[](required)Grid item array with id, code, title, and summary.Shows expanded details exclusively on active item.
stiffnessnumber340Spring stiffness for card size transition.Tunes expansion snappy velocity.
dampingnumber28Spring damping preventing layout bounce overshoot.Controls layout settle smoothness.
accentColorstring'#536dfe'Border/code highlight color for active item.Highlights expanded panel.

More in Layout & Gallery

View All 36 →
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
Wheel scroll, drag, or scrub track0%
01 / FRAME
Modular Deck
Snap-x rail track
02 / SKEW
Velocity Lean
±6deg inertia
03 / WHEEL
Smart Wheel
Auto edge release
04 / MOBILE
Touch Drag
Mandatory scroll snap
skewStrength: 6deg

Horizontal Scroll Gallery

Smooth wheel-to-horizontal showcase strip with velocity skew inertia and progress bar.

View Details