Installation
Choose your framework. The registry installs one component file and its PixiJS dependency.
Installation unavailable
This preview is not assigned to the free or paid catalog. Installation is unavailable.
The registry command writes the component to src/lib/components/ui/InteractiveGrid.svelte and installs its dependencies.
The registry command writes the component to src/components/ui/InteractiveGrid.tsx and installs its dependencies.
The registry command writes the component to src/components/ui/InteractiveGrid.vue and installs its dependencies.
Overview
Interactive Grid stores a two-axis displacement vector per cell and samples that field with hard nearest-neighbor boundaries, producing the reference’s blockwise elastic image distortion.
Pointer velocity is distributed to cells within the selected radius, then decays through frame-rate-corrected relaxation so the image settles back into place.
Basic usage
The shader fills its parent. Your layout decides whether that parent is a card, hero, or viewport.
- Enable interaction so pointer movement can inject velocity into the grid.
- Higher Grid values create smaller image cells and require proportionally more CPU-side state updates.
- Remote image sources must allow cross-origin image loading when served from another origin.
Component API
Types below match the selected Svelte component.
Types below match the selected React component.
Types below match the selected Vue component.