Search

Search the site

All components

Wave Strands

Flagship WebGL hero background: React Three Fiber strands with DNA / magnetic / cosmic presets, real 3D line geometry, smoothed cursor interaction, depth layering, optional glow, visibility throttling, and reduced-motion scaling. Internal Canvas behind optional children.

Default
DNA preset with default swirl interaction

Sign in to view this example's source code.

Sign in
DNA preset
Intertwining strands with violet accent

Sign in to view this example's source code.

Sign in
Cosmic with children
Cosmic preset behind hero copy

Hero background

Flowing energy strands

Foreground content stays fully interactive while the WebGL layer animates behind it.

Sign in to view this example's source code.

Sign in
Magnetic repel
Magnetic preset with stronger repel interaction

Sign in to view this example's source code.

Sign in

Props

NameTypeDefaultDescription
childrenReactNode-Foreground above the WebGL layer (clicks/hover work normally).
colorstring#22d3eeStrand accent color (hex)
preset"dna" | "magnetic" | "cosmic""dna"Visual tuning bundle — intertwining twist, energetic motion, or deep parallax drift
strandsnumberpreset default (10–14)Number of animated strands (clamped 6–20)
speednumberpreset defaultAnimation speed multiplier
thicknessnumber1.5Strand line thickness in world units
interaction"none" | "swirl" | "repel" | "attract""swirl"Cursor deformation mode; swirl twists nearby strands with smooth falloff
interactionStrengthnumber0.55Cursor influence intensity (clamped)
interactionRadiusnumber1.2World-space falloff radius for cursor effects
depthnumber1Z-depth spread multiplier for parallax layering
glowbooleantrueAdditive glow pass behind each strand
minDecoHeightnumber280When there are no children, minimum height (px) of the pattern area