Installation
Install the component
Run the following command to install the component and its dependencies:
npx @motion-core/cli add text-loopImport the component
Import the component into your Svelte file:
import { TextLoop } from "$lib/motion-core";import { TextLoop } from "$lib/motion-core";Usage
Create magic today
Props
TextLoop
| Prop | Type | Default |
|---|---|---|
texts | string[] | — |
interval | number | 2000 |
class | string | — |