{"name":"hoverintent","version":"2.2.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":"e949ccd8be014315010929ec36fa13e62083e781","bugs":{"url":"https://github.com/tristen/hoverintent/issues"},"_id":"hoverintent@2.2.0","_npmVersion":"6.1.0","_nodeVersion":"6.14.2","_npmUser":{"name":"tristen","email":"tristen.brown@gmail.com"},"dist":{"integrity":"sha512-Ix+MYNVaG2+uHR6vC52hCZr3Bloif39jcayJ3uiWQ10WCgB/L0/drRJYxf55VRe7dYCPqM4h9iOwYzXwrl0XlQ==","shasum":"86414f1090e48bdd16d3ae8ee0464a750e89c351","tarball":"http://registry-npm.ywwl.com/hoverintent/download/hoverintent-2.2.0.tgz","fileCount":11,"unpackedSize":15478,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb1jkYCRA9TVsSAnZWagAA5TgP/jf4arqgzkhjOIZZ9gwi\n0o+DMFvuh3neEZJF84CaTkwswbo5E8nsmJ3D/8LRbOTz0aVusWtyfi5Ni0Sd\nDUob4xRoh1sTwTFaI4T5eN3v/filoXtXCodvpno3Idtm+Y3x6NsdXlKuhF7y\nI6L9WcOjd3NVF686jMYrbd2r5pp3/ldkzXnOTxLqhQzM6z7xDSQRH8wZgbHW\n+kKWJwzwWPRHrAaGRMzibLiOHIDJCqrPSxnvjxlW3wXwV2IF3r04XYteDbXp\nUi2MHOXG8FQVNB1bEXguK6WgPzgLolPaSAbqOw6Twxeq7HGUPoRwXg/m9DiR\nh1QpkviFVmHv71ZkqVGD9ZbApthD1OB31Bs6IWeWrjLvLlb9gMfbMjnpAad5\nTdL1wNhdm/MCxgq+WNtsAs2fd4+RYHFHj2qMO3Bug/dT3/y+TGMXVe2/nWl5\n2eJpADvpdvSW0sZfNrCOlqse8ojUAO/IbtGNIkuilw0VFtPLi80BtXgj3KkM\nxJv119FjdYL9d8t95rcSbKp74QiyUhfpqcbfX62+6gfWwYC7tuwjrVEzv96b\nOjQkQnR441IqCm0A5fI825E+1OexM8Hjov+3HXWZbtYqjD2IAH/4Uua+K44G\nerGELJ5bfouPxqqbkSIXqN/R47+i9+/LmYuTB4Pdpf0wbm+qNEZGJ2jJKHju\nGwEN\r\n=tv06\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEXX+4oLW02LS15TU3ZWg+cjz9rICeiSqH6GrHPD819IAiBqWuEivEgWIZUE0s9n/nwZ9gYwUbEBU3bQXoccL3UDew=="}],"size":6015,"noattachment":false,"key":"/hoverintent/-/hoverintent-2.2.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.2.0_1540765976069_0.12721063553353273"},"_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":1540765976203,"_cnpm_publish_time":1540765976203,"dist-tags":{"latest":"2.2.1"}}