Installation
Install the component
Run the following command to install the component and its dependencies:
npx @motion-core/cli add glass-slideshowImport the component
Import the component into your Svelte file:
import { GlassSlideshow } from "$lib/motion-core";import { GlassSlideshow } from "$lib/motion-core";Usage
Props
GlassSlideshow
| Prop | Type | Default |
|---|---|---|
images | string[] | — |
index | number | 0 |
transitionDuration | number | 2000 |
intensity | number | 1.0 |
distortion | number | 1.0 |
chromaticAberration | number | 1.0 |
refraction | number | 1.0 |
autoplay | boolean | true |
autoplayInterval | number | 5000 |
class | string | "" |