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.
Produces believable spatial separation cleanly through pure GPU composite transforms with zero heavy Three.js overhead.
Sweep horizontally over columns or adjust depthStrength control.
Zero external packages needed.
| Prop | Type | Default | Description | Effect |
|---|---|---|---|---|
| layers | DepthLayerCard[] | (required) | Cards configured with independent `depthRatio` speeds. | Decouples foreground vs background travel distance. |
| depthStrength | number | 34 | Peak horizontal shift multiplier in pixels. | Scales spatial parallax intensity. |
| maxTiltDeg | number | 5 | Maximum perspective Y-rotation angle in degrees. | Enhances 3D angle tilt. |
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.
Smooth wheel-to-horizontal showcase strip with velocity skew inertia and progress bar.