Installation
Install the component
Run the following command to install the component and its dependencies:
npx @motion-core/cli add preloaderImport the component
Import the component into your Svelte file:
import { Preloader } from "$lib/motion-core";import { Preloader } from "$lib/motion-core";Usage
Props
Preloader
| Prop | Type | Default |
|---|---|---|
images | {src: string, alt?: string}[] | — |
class | string | "" |
onComplete | () => void | undefined |