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.
Ideal for portfolio index filters, searchable feature directories, and product category showcases.
Toggle category pills to watch masonry tiles reflow smoothly.
npm install framer-motionCoordinates AnimatePresence popLayout and smooth FLIP grid reflow.
| Prop | Type | Default | Description | Effect |
|---|---|---|---|---|
| columns | 2 | 3 | 3 | Grid column count above mobile breakpoints. | Controls column density. |
| stiffness | number | 340 | Spring stiffness controlling FLIP tile glide. | Tunes reorder snappiness. |
| damping | number | 28 | Spring damping preventing overshoot oscillation. | Controls settle firmness. |
| accentColor | string | '#536dfe' | Active filter button fill and item tag tint. | Tints active tag accents. |
Interactive 2-column Bento showcase that expands selected cards smoothly with spring reflow.
Sharp contrast when focused.
Sibling cards step back calmly.
Works across mouse, touch & keyboard.
Focused card sharpens and elevates cleanly while unselected siblings softly dim and blur.
Three-layer card deck translating horizontally at proportional depth speeds inside perspective space.