Vortex
A swirling 3D particle vortex with configurable density and speed. Built with Three.js and @react-three/fiber.
Interactive Demo
Loading vortex...
Color
Particles: 500
Speed: 1.0
Usage
import { Vortex } from "@mantleui/react/three";
<Vortex color="#8b5cf6" count={500} speed={1} height={400}/>Props
| Prop | Type | Default | Description |
|---|---|---|---|
count | number | 500 | Number of particles. |
color | string | "#8b5cf6" | Particle color. |
speed | number | 1 | Animation speed multiplier. |
radius | number | 2 | Spiral radius. |
length | number | 6 | Spiral length along the Y axis. |
particleSize | number | 0.02 | Individual particle size. |
height | string | number | 400 | Container height. |
backgroundColor | string | "transparent" | Background color of the container. |
count500numberNumber of particles.
color"#8b5cf6"stringParticle color.
speed1numberAnimation speed multiplier.
radius2numberSpiral radius.
length6numberSpiral length along the Y axis.
particleSize0.02numberIndividual particle size.
height400string | numberContainer height.
backgroundColor"transparent"stringBackground color of the container.