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:
npx @motion-core/cli add lava-lampimport { LavaLamp } from "$lib/motion-core";import { LavaLamp } from "$lib/motion-core";<script lang="ts">
import { LavaLamp } from "motion-core";
</script>
<LavaLamp class="h-full min-h-96 w-full" />
| Prop | Type | Default |
|---|---|---|
color | string | "#17181A" |
fresnelColor | string | "#ff6900" |
speed | number | 1.0 |
fresnelPower | number | 3.0 |
radius | number | 1 |
smoothness | number | 0.1 |
class | string | "" |