{"name":"hoverintent","version":"2.1.0","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":"851c869321c93783585bca0fb2c268a10f736e78","bugs":{"url":"https://github.com/tristen/hoverintent/issues"},"_id":"hoverintent@2.1.0","_npmVersion":"6.1.0","_nodeVersion":"6.14.2","_npmUser":{"name":"tristen","email":"tristen.brown@gmail.com"},"dist":{"integrity":"sha512-a4Xonl3BIgqAi5bE32s5T+2yPMZ/QcrqBxJXJ36rSXNPY6w4GkZgvvlPqvTQSwgBgrfeXzLGqf+kBePpzJt6pQ==","shasum":"0df1b08aa711d8905e2ec72dca78523d2941d700","tarball":"http://registry-npm.ywwl.com/hoverintent/download/hoverintent-2.1.0.tgz","fileCount":11,"unpackedSize":13915,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbWjjoCRA9TVsSAnZWagAA36kP+wU9jbaoUSvn0yqJqUS3\nN+LL5V1EDQuEQVNGowoe5y769/1+Vt/4r9BnuvriRKh5kZdOqnxDxvSJ5IA9\nq8/uom7WzVhqqvurqJHDYD1mFQMlKAB21QQLFSjYyCu84VaUltI0Ao8O3pPr\n7Hj+7yXu2WKbrtlF4VxaoKmtXRCzW+QsExQqVgCobIMTQRYZS6gffSTjfsX5\n/I/hM93yasPnfJVmvCW/8pvxqp+W7NBcl/A8EgfGvg8Iv1eGcDeYgjBqDet+\nbwVZhmI9qM7GHaXYyB03BswXXbmn/DlLqFFCmT7URZiQZygjUEnHw/AHmn2e\nWsi1vm8SAcb3ZST0+Fe1+Cta66gy/++5gMHGu9qCTmE3UM0IFZn+vaEr6VL2\nRRAvo9+GgzDRsErfuGBttyhxpvTFGLV9T0ZF3YcckkobwbUvKtpJ0L5ynJ4d\nmPyhrqULY2H4Z6djypOA5A51iSKiRRtUwU9KTkcUw/hXn2KrHC+kbyVXrGkY\nQBW7uLoy8vzeAcUS8mfejqM8T1mQ8hwiRfvF1JEFybJSbyMyrVtZBTN5vDJk\nQLKvTYVS7/T8nIzrpsX9bA6J/SW4cUeegEwfCAa4rDDnugiXa3wZ/cIy93ae\n1fLoB2MbtLXd85DITat+MNGY980BGeEX+tkd0VoDnsQ9eznETLF5MVIQonDq\n3zG5\r\n=lyU7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCW7JEnFGJhlSJ2bm51hIxbO+x1FDROXl7ltNQy6eJdGwIgJB4O9MqUbPEpbHVmEhm9w8DJmubfuWkgkFH9KneDikA="}],"size":5594,"noattachment":false,"key":"/hoverintent/-/hoverintent-2.1.0.tgz"},"maintainers":[{"name":"davidtheclark","email":"david.dave.clark@gmail.com"},{"name":"tristen","email":"tristen.brown@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hoverintent_2.1.0_1532639464136_0.6555648466727426"},"_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":1532639464239,"_cnpm_publish_time":1532639464239,"dist-tags":{"latest":"2.2.1"}}