Skip to content

Caustic Surface

Distorted pools of light drift across a deep water surface.

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 CausticSurface from "./CausticSurface";
export default function Example() {
return (
<CausticSurface
color={"#8acde2"}
background={"#102b40"}
speed={18}
intensity={0.6}
scale={90}
paused={false}
height={420}
/>
);
}

Using Caustic Surface

Use Caustic Surface as a bounded section background, with foreground content passed through children. Each instance receives a unique SVG filter ID.

Increase scale for broader reflections and reduce intensity behind text. Pause the effect when its section is hidden to avoid unnecessary animation.

Props

NameTypeRequiredDefaultDescription
colorstringNo"#8acde2"Colour of the moving light.
backgroundstringNo"#102b40"Base surface colour.
speednumberNo18Drift cycle duration in seconds.
intensitynumberNo0.6Light opacity from zero to one.
scalenumberNo90Approximate cell size in pixels.
childrenReactNodeNoundefinedOptional foreground content.
heightnumber | stringNo420Reserved height of the effect.
pausedbooleanNofalsePause the decorative animation.
classNamestringNo""Additional classes on the root element.
styleCSSPropertiesNoundefinedInline styles for sizing, typography and appearance.

Related components

Lava Lamp

Backgrounds

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

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.