{"name":"hoverintent","version":"2.2.1","repository":{"type":"git","url":"git+ssh://git@github.com/tristen/hoverintent.git"},"description":"Fire mouse events when the user intends it","main":"index.js","scripts":{"build":"babel index.js | uglifyjs -mc > dist/hoverintent.min.js"},"author":{"name":"tristen"},"ender":"./ender.js","homepage":"http://tristen.ca/hoverintent","licenses":[{"type":"MIT"}],"devDependencies":{"babel-cli":"^6.26.0","babel-plugin-transform-es2015-modules-umd":"^6.24.1","babel-plugin-transform-object-assign":"^6.22.0","uglify-js":"^2.6.1"},"gitHead":"02adbc0e782feb709db592632ec14fbe30622346","bugs":{"url":"https://github.com/tristen/hoverintent/issues"},"_id":"hoverintent@2.2.1","_nodeVersion":"10.13.0","_npmVersion":"6.10.2","dist":{"integrity":"sha512-VyU54L1xW5rSqpsv/LJ6ecymGXsXXeGs9iVEKot4kKBCq5UodSAuy3DqX686LZxEpaMEfeCHPu4LndsMX5Q9eQ==","shasum":"18d7f837adfc20501b4a1faca704d761e9017d18","tarball":"http://registry-npm.ywwl.com/hoverintent/download/hoverintent-2.2.1.tgz","fileCount":7,"unpackedSize":10323,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdVYYgCRA9TVsSAnZWagAAdK0P/jMaqCCuemcGV/yhJFnO\nGbSbI/bgHKaxL0LGocXNPfwXWgXZep+GPyKS6stEHOYbaz2mYYg1KE4w7O18\npuOXNdt0dOdeIFOoW3RNvUwqoA3vVeIzp0lSg71jxMVFhfC3vwP3a49+F/Ak\n7zuD8yDKHqcykqRVdWebdpdhAPY427er20zPCO+qlSt/+3ICzVd1AVzckKNa\nbfV22EDqs1FcyKm3NW/nIttVgtAHqM8/eSMpyHdHrvZt0ghJyv0hw+tORy8h\n8eZYsBlbIHlWlJjJFKljzzC/mkX/p1DQkT8laz9FZaBh3hRJTA8bV8jLbKCj\nWF4wi/ewJFE5lHWX8T1ZD3mmpr7xA8wNpQWfOXWk64LGjgzz7ws9Sd06BbAs\nFPs+KWgH0+0WG90RPNoRXP5wVfa428EQZjX8QSE5f3YdJJT1es22mmGv96xD\nw92mWdMWZEJwXqYW4zFdKuRq2QL+oYL7KuV07qRN/a9qPmZVtCDf6eO+OONI\nMdDU4QBazuFu+hAYmuSuVTjFC0SvDrIjSobXQOnZB83ZrhuRSowJX3DGjsOG\nMBWXPIYurZItyHUXOoVQ+7MFELL4oF6U/6gLCbJ/V7g1aA6gTAwVPT2wJ0Ud\nbWUAatXYqz6xoa2nypUE3Bar6JEDNgy9+IHhNRg26V2nA9IauI9Lx/zwSmOv\naHRH\r\n=hoJu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQComd+N327oQy0qJ9ybYkfWr9rkXPr1QI7bspgqnHVrOAIgSVswenOyJmH7t+VO86qD+K0bQ2TxgLMRW1tJo1R+DuQ="}],"size":4072,"noattachment":false,"key":"/hoverintent/-/hoverintent-2.2.1.tgz"},"maintainers":[{"name":"davidtheclark","email":"david.dave.clark@gmail.com"},{"name":"tristen","email":"tristen.brown@gmail.com"}],"_npmUser":{"name":"tristen","email":"tristen.brown@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hoverintent_2.2.1_1565885983860_0.8611567137350216"},"_hasShrinkwrap":false,"readme":"hoverintent\n---\n\nhoverintent is a reworking of Brian Cherne's [jQuery plugin](http://cherne.net/brian/resources/jquery.hoverIntent.html)\nin plain javascript. It has no dependencies.\n\nIt's goal is to determine a user's intention when hovering over an element by triggering a mouseover event when the cursor position\nhas slowed down enough.\n\n[Check out the demo](http://tristen.ca/hoverintent) to see how it works in action.\n\n### Browser Support\n\n| <img src=\"http://i.imgur.com/dJC1GUv.png\" width=\"48px\" height=\"48px\" alt=\"Chrome logo\"> | <img src=\"http://i.imgur.com/o1m5RcQ.png\" width=\"48px\" height=\"48px\" alt=\"Firefox logo\"> | <img src=\"http://i.imgur.com/8h3iz5H.png\" width=\"48px\" height=\"48px\" alt=\"Internet Explorer logo\"> | <img src=\"http://i.imgur.com/iQV4nmJ.png\" width=\"48px\" height=\"48px\" alt=\"Opera logo\"> | <img src=\"http://i.imgur.com/j3tgNKJ.png\" width=\"48px\" height=\"48px\" alt=\"Safari logo\"> |\n|:---:|:---:|:---:|:---:|:---:|\n| All ✔ | All ✔ | 9+ ✔ | 7+ ✔ | All ✔ |\n\n### Basic usage\n\n#### Adding hoverintent to an element\n\n``` html\n<script src='hoverintent.min.js'></script>\n<script>\n  var el = document.getElementById('element-id');\n  hoverintent(el,\n  function() {\n    // Handler in\n  }, function() {\n    // Handler out\n  });\n</script>\n```\n\n#### Removing hoverintent from an element\n\n``` html\n<script src='hoverintent.min.js'></script>\n<script>\n  var el = document.getElementById('element-id');\n\n  // Save a reference to the method\n  var hoverListener = hoverintent(el,\n  function() {\n    // Handler in\n  }, function() {\n    // Handler out\n  });\n\n  // Remove hoverintent listeners\n  hoverListener.remove();\n</script>\n```\n\n### Custom options\nYou can adjust mouse sensitivity or the length of time a mouse over/out event is fired:\n\n``` html\n<script src='hoverintent.min.js'></script>\n<script>\n  var opts = {\n    timeout: 500,\n    interval: 50\n  };\n\n  var el = document.getElementById('element-id');\n  hoverintent(el,\n  function() {\n    // Handler in\n  }, function() {\n    // Handler out\n  }).options(opts);\n</script>\n```\n\n| Setting | Default Value | Description |\n| ---- | ---- | ---- |\n| sensitivity | <pre>sensitivity: 7</pre> | The value (in pixels) the mouse cursor should not travel beyond while hoverintent waits to trigger the mouseover event. |\n| interval | <pre>interval: 100</pre> | The length of time (in milliseconds) hoverintent waits to re-read mouse coordinates. |\n| timeout | <pre>timeout: 0</pre> | The length of time (in milliseconds) before the `mouseout` event is fired. |\n| handleFocus | <pre>timeout: false</pre> | Adds onOver/onOut callbacks to keyboard navigation during blur and focus events |\n\n### Ender support\nAdd `hoverintent` as an internal chain method to your [Ender](https://github.com/ender-js/Ender) compilation.\n\n``` js\n// ender add hoverintent\n\n$('.element').hoverintent(function() {\n    // Handler in\n}, function() {\n    // Handler out\n});\n```\n\n### Building\n\nto manage dependencies and build. Development requires you\nhave [node.js](http://nodejs.org) installed.\n\n1. [Install node.js](http://nodejs.org/). 'Install' will download a package for\nyour OS.\n3. Run `npm install`\n4. Run `npm run build`\n\n### Licence\n\n     _____\n    < MIT >\n     -----\n            \\   ^__^\n             \\  (oo)\\_______\n                (__)\\       )\\/\\\n                    ||----w |\n                    ||     ||\n\n### Bugs?\n\n[Create an issue](https://github.com/tristen/hoverintent/issues)\n","publish_time":1565885983971,"_cnpm_publish_time":1565885983971,"dist-tags":{"latest":"2.2.1"}}