@rickmeijer/mousemove

1.0.0 • Public • Published

Small script that should track mouse movement over an element. Should be used other scripts that need the mouse position.

Usage:

import { mouseMove } from '@rickmeijer/utils/mousemove'

let interactiveHTMLElement = document.body;

mouseMove(interactiveHTMlElement, (x, y) => {
 // do stuff here with the mousecursor
}, .2);

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @rickmeijer/mousemove

      Weekly Downloads

      1

      Version

      1.0.0

      License

      ISC

      Unpacked Size

      2.78 kB

      Total Files

      3

      Last publish

      Collaborators

      • rickmeijer