Installation
Install the component
Run the following command to install the component and its dependencies:
npx @motion-core/cli add pixelated-imageImport the component
Import the component into your Svelte file:
import { PixelatedImage } from "$lib/motion-core";import { PixelatedImage } from "$lib/motion-core";Usage
Props
PixelatedImage
| Prop | Type | Default |
|---|---|---|
src | string | — |
initialGridSize | number | 6.0 |
stepDuration | number | 0.15 |
class | string | "" |