Vortex

<Vortex>CSS Modules

Premium GPU spiral particles with soft persistence trails on native WebGL (Canvas 2D fallback). Fills any container, stays behind children. Parent controls background (canvas is transparent by default).

InstallationColoxo CLI
npx coloxo add vortex
ES Module ImportPlayground / npm package
import { Vortex } from '@coloxo/ui/visuals';

1. Quick demo

A continuous spiral behind the panel. For the full hero, controls, and variants, open the Blocks page.

Spiral light, native WebGL

Parent paints the midnight background. Animation pauses when the tab is hidden.

2. Blocks showcase

See the composed hero, live controls, CTA banner, and feature card examples on the Blocks page.

3. Props

NameTypeDefaultDescription
particlesnumber420Base particle count before quality/area scaling (40–900).
speednumber1Motion multiplier (0.1–3).
rangenumber1Spiral radius scale (0.25–2).
colorsstring[]—Particle palette (CSS color strings).
intensitynumber0.65Brightness / size (0–1).
trailPersistencenumber0.7How long trails linger (0–1).
quality"low" | "medium" | "high"mediumInternal canvas resolution and particle density scale.
centerXnumber0.5Vortex center X as fraction of width (0–1).
centerYnumber0.5Vortex center Y as fraction of height (0–1).
pausedbooleanfalseStop continuous animation.
respectReducedMotionbooleantrueHonor prefers-reduced-motion (static frame).