1.5.0 • Published 11 months ago
@codemasters/mousetrail v1.5.0
MouseTrail
a lightweight, framework-independent mouse tracker library
Installation or Update
bun
bun add @codemasters/mousetrail@latestnpm
npm i @codemasters/mousetrail@latestor anything you like
Getting Started
import mouseTrail from "@codemasters/mousetrail";
mouseTrail(); this will create a mouse trail,you can use it with any javascript framework,library and even vanilla js
for nextjs for example you can add this to a client component then use the component inside a server component like main layout to create mouse trail
You can also pass an object for options:
mouseTrail({
backgroundColor:"#ffffff",
size:{width:12,height:12},
expandOnClick:true,
});more options will be added
To distroy it:
mouseTrail.distroy()