Installation
Install the component
Run the following command to install the component and its dependencies:
npx @motion-core/cli add water-rippleImport the component
Import the component into your Svelte file:
import { WaterRipple } from "$lib/motion-core";import { WaterRipple } from "$lib/motion-core";Usage
Props
WaterRipple
| Prop | Type | Default |
|---|---|---|
src | string | — |
brushSize | number | 100 |
class | string | "" |