Installation
Install the component
Run the following command to install the component and its dependencies:
npx @motion-core/cli add split-hoverImport the component
Import the component into your Svelte file:
import { SplitHover } from "$lib/motion-core";import { SplitHover } from "$lib/motion-core";Usage
Props
SplitHover
| Prop | Type | Default |
|---|---|---|
hoverTarget | HTMLElement | null | null |
class | string | "" |