1.5.0 • Published 11 months ago

@codemasters/mousetrail v1.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

MouseTrail

a lightweight, framework-independent mouse tracker library

Installation or Update

bun

bun add @codemasters/mousetrail@latest

npm

npm i @codemasters/mousetrail@latest
or 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()
1.5.0

11 months ago

1.0.46

11 months ago

1.0.45

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago