Skip to main content
A cool background effect with waves that move. This component creates flowing, animated waves using simplex noise and canvas rendering.

Dependencies

npm install simplex-noise

Props

Prop NameTypeDefaultDescription
classstring-The content to be displayed on top of the wavy background.
containerClassstring-The CSS class to apply to the content container.
colorsstring[]["#38bdf8", "#818cf8", "#c084fc", "#e879f9", "#22d3ee"]The colors of the waves.
waveWidthnumber50The width of the waves.
backgroundFillstring"black"The background color.
blurnumber10The blur effect applied to the waves.
speed"slow" | "fast""fast"Range of speed variation for particles.
waveOpacitynumber0.5Base radius of particles.
[key: string]any-Range of radius variation for particles.

Credits

Build docs developers (and LLMs) love