@supermousejs/trail
v2.2.1
Published
Generates a procedural particle trail that follows the cursor.
Readme
@supermousejs/trail
Generates a procedural particle trail that follows the cursor.
Installation
pnpm add @supermousejs/trailUsage
import { Supermouse } from "@supermousejs/core";
import { Trail } from "@supermousejs/trail";
const app = new Supermouse();
app.use(
Trail({
length: 10, // Number of segments
size: 6, // Particle size
color: "#ff00ff"
})
);Documentation
Full documentation and interactive playground available at supermouse or check out the repo.
