Installation
Install the component
Run the following command to install the component and its dependencies:
npx @motion-core/cli add flip-gridImport the component
Import the component into your Svelte file:
import { FlipGrid, FlipGridItem } from "$lib/motion-core";import { FlipGrid, FlipGridItem } from "$lib/motion-core";Usage




Props
FlipGrid
| Prop | Type | Default |
|---|---|---|
children | Snippet | — |
columns | number | undefined |
class | string | "" |
style | string | "" |
duration | number | 0.5 |
ease | string | "power2.inOut" |
stagger | number | 0 |
FlipGridItem
| Prop | Type | Default |
|---|---|---|
children | Snippet | — |
id | string | — |
class | string | "" |