All components

Wave Strands

WebGL hero background using React Three Fiber with 3D strand-style geometry and simple presets (DNA, magnetic, cosmic). It gently responds to cursor movement with attraction, repulsion, and depth. Renders behind content in a container-scoped canvas and respects reduced-motion settings.

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