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.
Built for media compression showcases, light/dark UI comparisons, and AI enhancement reveals without overflowing DOM widths.
Drag split divider or use Left/Right keyboard arrows to compare.
Zero external packages needed.
| Prop | Type | Default | Description | Effect |
|---|---|---|---|---|
| orientation | 'horizontal' | 'vertical' | 'horizontal' | Axis along which split divider sweeps. | Switches horizontal vs vertical slicing. |
| position | number | 52 | Split percentage position across container (4..96). | Controls divider offset cleanly. |
| handleColor | string | '#536dfe' | Divider line and drag handle border pigment. | Styles scrubber handle. |
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.