{"name":"hoverintent","version":"2.0.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":"browserify index.js -s hoverintent | uglifyjs -mc > dist/hoverintent.min.js"},"author":{"name":"tristen"},"ender":"./ender.js","homepage":"http://tristen.ca/hoverintent","licenses":[{"type":"MIT"}],"devDependencies":{"browserify":"^12.0.1","uglify-js":"^2.6.1"},"dependencies":{"xtend":"^4.0.1"},"gitHead":"d605ca94b90ff42a1281eb5bee178c8b6fb2321d","bugs":{"url":"https://github.com/tristen/hoverintent/issues"},"_id":"hoverintent@2.0.0","_npmVersion":"5.3.0","_nodeVersion":"6.11.1","_npmUser":{"name":"davidtheclark","email":"david.dave.clark@gmail.com"},"dist":{"integrity":"sha512-2hembu+OgR00tbtdGg9zerJq1385WZuatKCyRXKzj4q6uOtImRjcZPOlsUAJLRaL93Mliyevrt2PYC8f+BI2jA==","shasum":"7e3c231dee8387d4f37c5bafeb9aa3e5523805cc","tarball":"http://registry-npm.ywwl.com/hoverintent/download/hoverintent-2.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCdC8s7QAWMrEiMGK9CuJznYwAc68Z/Wbutc3KcMSEjtAIgeZcSON3483HBVGF+m374AW2fW20NWvlCidojw5dQS+I="}],"size":5821,"noattachment":false,"key":"/hoverintent/-/hoverintent-2.0.0.tgz"},"maintainers":[{"name":"davidtheclark","email":"david.dave.clark@gmail.com"},{"name":"tristen","email":"tristen.brown@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hoverintent-2.0.0.tgz_1501176226006_0.019098712597042322"},"directories":{},"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":1501176226172,"_cnpm_publish_time":1501176226172,"dist-tags":{"latest":"2.2.1"}}