Installation
Install the component
Run the following command to install the component and its dependencies:
npx @motion-core/cli add infinite-galleryImport the component
Import the component into your Svelte file:
import { InfiniteGallery } from "$lib/motion-core";import { InfiniteGallery } from "$lib/motion-core";Usage
Props
ImageTrail
| Prop | Type | Default |
|---|---|---|
images | ImageItem[] | — |
speed | number | 1.0 |
visibleCount | number | 8 |
fadeSettings | FadeSettings | Default Fade |
blurSettings | BlurSettings | Default Blur |
class | string | "" |
Fade Settings
| Key | Type | Default |
|---|---|---|
fadeIn.start | number | 0.05 |
fadeIn.end | number | 0.25 |
fadeOut.start | number | 0.4 |
fadeOut.end | number | 0.43 |
Blur Settings
| Key | Type | Default |
|---|---|---|
blurIn.start | number | 0.0 |
blurIn.end | number | 0.1 |
blurOut.start | number | 0.4 |
blurOut.end | number | 0.43 |
maxBlur | number | 8.0 |