Skip to content

Particle Vortex

Fine particles trace a slowly turning spiral around your content.

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 ParticleVortex from "./ParticleVortex";
export default function Example() {
return (
<ParticleVortex
color={"#bea6d8"}
background={"#15111d"}
count={240}
speed={40}
minHeight={400}
children={"Drawn to the centre."}
style={{
"fontSize": 34,
"letterSpacing": "-.05em",
"color": "#ebdff5"
}}
/>
);
}

Using Particle Vortex

Use count to choose the particle density and minHeight to reserve the background area. Foreground content belongs in children.

Keep the centre readable and use a slower speed for sustained viewing. Fewer particles can make the spiral clearer in smaller containers.

Props

NameTypeRequiredDefaultDescription
colorstringNo"#ccb6e3"Particle colour.
backgroundstringNo"#15111d"Background colour.
countnumberNo180Particle count, clamped between 20 and 500.
speednumberNo40Revolution duration in seconds.
minHeightnumber | stringNo400Minimum viewport height in pixels or a CSS length.
childrenReactNodeNoundefinedOptional content above the spiral.
classNamestringNo""Additional classes merged with the component styles.
styleCSSPropertiesNoundefinedInline styles for caller-defined sizing, typography, and appearance.

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.