Sparkles
VERSION2.3.1
LICENSEMIT
CONFIG5 Options
Emits particle trails based on movement velocity.
Installation
pnpm add @supermousejs/labsUsage
import { Sparkles } from '@supermousejs/labs';
app.use(Sparkles({ color: '#f59e0b', frequency: 10 }));Configuration
* Reactive Property| Option | Type | Default | Description |
|---|---|---|---|
| color * | string | '#ff00ff' | Particle color. |
| count | number | 30 | Number of particles to keep in the pool. |
| frequency | number | 10 | Pixels per spawn. |
| decay | number | 0.05 | Fade rate. |
| scatter | number | 5 | Random position offset for particle spawning. |