Installation
Install the component
Run the following command to install the component and its dependencies:
npx @motion-core/cli add slideshowImport the component
Import the component into your Svelte file:
Showcase
A full-bleed gallery featuring parallax transitions and a synchronized thumbnail navigator.
npx @motion-core/cli add slideshowimport { Slideshow } from "$lib/motion-core";import { Slideshow } from "$lib/motion-core";


<script lang="ts">
import { Slideshow } from "motion-core";
const images = [
{
src: "/images/demos/sample-1.jpg",
alt: "Alt 1",
},
{
src: "/images/demos/sample-2.jpg",
alt: "Alt 2",
},
{
src: "/images/demos/sample-3.jpg",
alt: "Alt 3",
},
];
</script>
<Slideshow class="h-full min-h-96 w-full" {images} />
| Prop | Type | Default |
|---|---|---|
images | {src: string, alt?: string}[] | — |
class | string | "" |