Warning: This component needs camera permission to work properly.
Installation
Install the component
Run the following command to install the component and its dependencies:
npx @motion-core/cli add card-3dImport the component
Import the component into your Svelte file:
import { Card3D } from "$lib/motion-core";import { Card3D } from "$lib/motion-core";Usage
Initializing camera...
Props
Card3D
| Prop | Type | Default |
|---|---|---|
image | string | — |
width | number | 3.2 |
height | number | 2 |
depth | number | 0.08 |
radius | number | 0.15 |
showPreview | boolean | false |
class | string | "" |