{"name":"scrollparent","version":"2.0.1","description":"A function to get the scrolling parent of an html element.","main":"scrollparent.js","repository":{"type":"git","url":"git+https://github.com/olahol/scrollparent.js.git"},"keywords":["browser","scroll","scrollparent","dom"],"author":{"name":"Ola Holmström"},"license":"ISC","bugs":{"url":"https://github.com/olahol/scrollparent.js/issues"},"homepage":"https://github.com/olahol/scrollparent.js#readme","gitHead":"5b8186327d1240a1fb339210b9b49135436bea89","_id":"scrollparent@2.0.1","scripts":{},"_shasum":"715d5b9cc57760fb22bdccc3befb5bfe06b1a317","_from":".","_npmVersion":"3.9.3","_nodeVersion":"6.2.1","_npmUser":{"name":"olahol","email":"ola.holmstrom@gmail.com"},"dist":{"shasum":"715d5b9cc57760fb22bdccc3befb5bfe06b1a317","tarball":"http://registry-npm.ywwl.com/scrollparent/download/scrollparent-2.0.1.tgz","integrity":"sha512-HSdN78VMvFCSGCkh0oYX/tY4R3P1DW61f8+TeZZ4j2VLgfwvw0bpRSOv4PCVKisktIwbzHCfZsx+rLbbDBqIBA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD2j5hmlcEM1NXfDJUqup8F8DmNjzMYh2gAmjkHzKSpoQIgNIH18EXhzYw1od8pqBEAO+OM6f8TW4ZufEqsmkZDfgo="}],"size":2977,"noattachment":false,"key":"/scrollparent/-/scrollparent-2.0.1.tgz"},"maintainers":[{"name":"olahol","email":"ola.holmstrom@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/scrollparent-2.0.1.tgz_1491850106007_0.5349804200232029"},"directories":{},"readme":"# scrollparent\n\n[![NPM version][npm-image]][npm-url]\n[![Size][size-image]][size-url]\n[![Download count][downloads-image]][downloads-url]\n![Build status][build-image]\n\nA function to get the scrolling parent of a html element.\n\n## Install\n\n```bash\nnpm install scrollparent --save\n```\n\n## Example\n\n```js\nvar Scrollparent = require(\"scrollparent\");\n\nScrollparent(document.getElementById(\"content\")) // HTMLHtmlElement or HTMLBodyElement as appropriate\n```\n\n```js\nvar Scrollparent = require(\"scrollparent\");\n\nScrollparent(document.getElementById(\"inside-a-scrolling-div\")) // HTMLDivElement\n```\n\n## Note about the root scrolling element\n\nInternally, the root scrolling element is determined in this library\nas the result of\n\n```js\ndocument.scrollingElement || document.documentElement;\n```\n\nThis should give a usable result in most browsers today\nbut if you want to ensure full support\nyou should use a `document.scrollingElement` polyfill such as\n[this one](https://github.com/mathiasbynens/document.scrollingElement).\n\n## Contributors\n\n<a href=\"https://github.com/olahol/scrollparent.js/graphs/contributors\">\n  <img src=\"https://contrib.rocks/image?repo=olahol/scrollparent.js\" />\n</a>\n\n## License\n\nMIT\n\n[build-image]: https://github.com/olahol/scrollparent.js/actions/workflows/playwright.yml/badge.svg\n[npm-image]: https://img.shields.io/npm/v/scrollparent.svg\n[npm-url]: https://npmjs.org/package/scrollparent\n[downloads-image]: http://img.shields.io/npm/dm/scrollparent.svg\n[downloads-url]: https://npmjs.org/package/scrollparent\n[size-image]: https://img.badgesize.io/olahol/scrollparent.js/master/scrollparent.js.svg\n[size-url]: https://github.com/olahol/scrollparent.js/blob/master/scrollparent.js\n","publish_time":1491850107856,"_cnpm_publish_time":1491850107856,"dist-tags":{"latest":"2.1.0"}}