Installation
Install the component
Run the following command to install the component and its dependencies:
npx @motion-core/cli add lava-lampImport the component
Import the component into your Svelte file:
import { LavaLamp } from "$lib/motion-core";import { LavaLamp } from "$lib/motion-core";Usage
Props
LavaLamp
| Prop | Type | Default |
|---|---|---|
color | string | "#18181b" |
fresnelColor | string | "#ff6900" |
speed | number | 1.0 |
fresnelPower | number | 3.0 |
radius | number | 1 |
smoothness | number | 0.1 |
class | string | "" |