Ecosystem /@supermousejs/labs

Sparkles

VERSION2.4.0
LICENSEMIT
CONFIG5 Options

Emits particle trails based on movement velocity.

Installation

pnpm add @supermousejs/labs

Usage

import { Sparkles } from '@supermousejs/labs';

app.use(Sparkles({ color: '#f59e0b', frequency: 10 }));

Configuration

* Reactive Property
OptionTypeDefaultDescription
color *string'#ff00ff'Particle color.
count number30Number of particles in the pool.
frequency number10Pixels of movement required to spawn a particle. Lower values for a denser trail.
decay number2.5Fade rate (0-1 per second). Higher values make for faster fading.
scatter number5Random position offset for particle spawning.
supermouse
js
| Copyright © 2024-2026 Stud.io Inc.