{"name":"scrollparent","version":"1.0.0","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":"5a548f11d77a521fcf9455c46f29b79eebc415b3","_id":"scrollparent@1.0.0","scripts":{},"_shasum":"1fb7cf9c53e11c0ea30e2bd08cfd8ae8d990ceba","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.5","_npmUser":{"name":"olahol","email":"olaholmstrom@gmail.com"},"maintainers":[{"name":"olahol","email":"ola.holmstrom@gmail.com"}],"dist":{"shasum":"1fb7cf9c53e11c0ea30e2bd08cfd8ae8d990ceba","tarball":"http://registry-npm.ywwl.com/scrollparent/download/scrollparent-1.0.0.tgz","integrity":"sha512-/Z+7J1d95m3ntTB2ENqGquV0Vix93mOS33nIAb8vP+1ujC/rb6iVbIaACLd4a8Wh8qb0tjum+CsL1yd2lOctwA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjN3m5BlkyTPvyHnyOtOrte9p/gKErqEzDKVmBlrZrEwIgPCMFx3C5gwEl1neYoIqDL9umep68NBAXJvmRWRcnvUQ="}],"size":2604,"noattachment":false,"key":"/scrollparent/-/scrollparent-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/scrollparent-1.0.0.tgz_1458323881923_0.7152569289319217"},"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":1458323884274,"_cnpm_publish_time":1458323884274,"dist-tags":{"latest":"2.1.0"}}