hide-mouse
Hides the mouse cursor after a specific time.
Install
npm install hide-mouse
Usage
To hide the cursor pass the desired DOM-element as el property and define the timeout as the hideAfter property in ms.
; const el = document;const hm = ;
It is also possible to temporarily deactiave the behavior by using the deactivate
method.
hm;// ...hm;
To completely unsubscribe and turn off the service use the kill
method.
hm;
Example
To start the example run npm run example
and visit http://localhost:1234
Build
To generate a new build run npm run build
, which will fail if tests won't pass. You can manually run the tests by using npm test
.