Skip to content

Helix Field

Two strands of shaded particles rotate around fine connecting rungs.

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 HelixField from "./HelixField";
export default function Example() {
return (
<HelixField
color={"#c7b5dd"}
secondaryColor={"#d3bc95"}
background={"#181923"}
strands={34}
speed={0.5}
paused={false}
height={420}
/>
);
}

Using Helix Field

Place Helix Field inside a section with an explicit height. Its canvas is positioned independently of the layout, so resizing does not expand the parent.

The animation pauses when the browser tab is hidden or reduced motion is enabled. Changing colours or density rebuilds the effect and cleans up the previous animation frame and observer.

Props

NameTypeRequiredDefaultDescription
colorstringNo"#c7b5dd"First strand and rung colour.
secondaryColorstringNo"#d3bc95"Second strand colour.
backgroundstringNo"#181923"Canvas background.
strandsnumberNo34Number of connected particle pairs, from 12 to 70.
speednumberNo0.5Angular speed in radians per second.
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.

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.

Guilloche Field

Backgrounds

Fine engraved loops turn through an intricate geometric rosette.