Skip to content

Lava Lamp

Warm liquid forms merge and drift inside a softly lit glass lamp.

LIVE PREVIEWInteract with the component
Just React. No extra dependencies.

Copy the component and its CSS module into your project.

CSS Modules

Usage

Matches your current playground settings.

jsx
import LavaLamp from "./LavaLamp";
export default function Example() {
return (
<LavaLamp
color={"#d79c79"}
liquidColor={"#37273d"}
background={"#1d1921"}
speed={12}
paused={false}
height={420}
/>
);
}

Using Lava Lamp

Use Lava Lamp as a decorative illustration beside your own content. All shapes are drawn with SVG, and each instance receives unique filter and clipping IDs.

Adjust the form and glass colours together for contrast. The paused prop freezes the animation and reduced motion shows the lamp without movement.

Props

NameTypeRequiredDefaultDescription
colorstringNo"#d79c79"Colour of the merging forms.
liquidColorstringNo"#37273d"Colour inside the glass.
backgroundstringNo"#1d1921"Background surface.
speednumberNo12Duration of each rise or fall in seconds.
pausedbooleanNofalsePause the motion.
heightnumber | stringNo420Reserved height of the illustration.
classNamestringNo""Additional classes on the root element.
styleCSSPropertiesNoundefinedInline styles for sizing, typography and appearance.

Related components

Helix Field

Backgrounds

Two strands of shaded particles rotate around fine connecting rungs.

Wave Lattice

Backgrounds

A fine perspective mesh drifts over a sculpted wave surface.

Kinetic Mobile

Backgrounds

Suspended discs, rings and counterweights sway on fine connecting rods.

Guilloche Field

Backgrounds

Fine engraved loops turn through an intricate geometric rosette.