Installation
Install the component
Run the following command to install the component and its dependencies:
npx @motion-core/cli add glass-paneImport the component
Import the component into your Svelte file:
import { GlassPane } from "$lib/motion-core";import { GlassPane } from "$lib/motion-core";Usage
Props
GlassPane
| Prop | Type | Default |
|---|---|---|
image | string | — |
distortion | number | 1.0 |
chromaticAberration | number | 0.005 |
waviness | number | 0.05 |
frequency | number | 6.0 |
speed | number | 1.0 |
class | string | "" |