Installation
Install the component
Run the following command to install the component and its dependencies:
npx @motion-core/cli add interactive-gridImport the component
Import the component into your Svelte file:
import { InteractiveGrid } from "$lib/motion-core";import { InteractiveGrid } from "$lib/motion-core";Usage
Props
InteractiveGrid
| Prop | Type | Default |
|---|---|---|
image | string | — |
grid | number | 15 |
mouseSize | number | 0.15 |
strength | number | 0.35 |
relaxation | number | 0.9 |
class | string | "" |