Skip to content

Silk Waves

Soft ribbons of light drift like folds in silk.

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 SilkWaves from "./SilkWaves";
export default function Example() {
return (
<SilkWaves
color={"#b68e86"}
highlightColor={"#f1d8ba"}
background={"#21191e"}
speed={12}
intensity={0.8}
angle={-18}
children={"A softer kind of motion."}
minHeight={400}
style={{
"fontSize": 36,
"letterSpacing": "-.045em",
"color": "#f5e9de"
}}
/>
);
}

Using Silk Waves

Use color and highlightColor to define the folds of light. angle sets their direction across the background.

Place foreground content in children and reserve the section with minHeight. A modest intensity gives text more room to stand out.

Props

NameTypeRequiredDefaultDescription
colorstringNo"#b68e86"Colour of the fabric folds.
highlightColorstringNo"#f1d8ba"Brightest colour along each fold.
backgroundstringNo"#21191e"Container background.
speednumberNo12Base animation cycle length in seconds.
intensitynumberNo0.8Opacity of the wave layer, from 0 to 1.
anglenumberNo-18Overall fabric angle in degrees.
childrenReactNodeNoundefinedOptional foreground React content.
minHeightnumber | stringNo380Minimum height in pixels or a CSS length. The component can fill a taller parent.
classNamestringNo""Additional CSS classes, merged with the component styles.
styleCSSPropertiesNoundefinedInline styles for caller-defined sizing and visual overrides.

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.