{"_id":"@bruitt/stuckyfill","_rev":"7-1c8c87597bd27f5ad9cb4f498c66e56e","name":"@bruitt/stuckyfill","description":"The most accurate sticky polyfill out in the wild.","dist-tags":{"latest":"1.1.1"},"versions":{"1.1.0":{"name":"@bruitt/stuckyfill","version":"1.1.0","description":"The most accurate sticky polyfill out in the wild.","main":"dist/index.js","scripts":{"build":"babel lib -d dist","prepublish":"BABEL_ENV=production npm run build","lint":"eslint ./lib","test":"echo \"Error: no test specified\" && exit 1","postversion":"git push && git push --tags"},"repository":{"type":"git","url":"git+https://github.com/bruitt/stuckyfill.git"},"author":{"name":"Oleg Korsunsky","url":"http://wd.dizaina.net/"},"license":"MIT","bugs":{"url":"https://github.com/bruitt/stuckyfill/issues"},"homepage":"https://github.com/bruitt/stuckyfill#readme","devDependencies":{"babel-cli":"^6.14.0","babel-core":"^6.14.0","babel-eslint":"^6.1.2","babel-preset-bruitt-lib":"^1.1.0","eslint":"^3.6.0","eslint-config-airbnb":"^12.0.0","eslint-plugin-import":"^1.16.0"},"gitHead":"37afff4770bac9ec2b384803551d98b036c5ffa9","_id":"@bruitt/stuckyfill@1.1.0","_shasum":"fa38e1d7eae1cf3807c1398c8ebf156f78968f5a","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.11.1","_npmUser":{"name":"bruitt","email":"mor.hetz@gmail.com"},"dist":{"shasum":"fa38e1d7eae1cf3807c1398c8ebf156f78968f5a","tarball":"https://registry.npmjs.org/@bruitt/stuckyfill/-/stuckyfill-1.1.0.tgz","integrity":"sha512-4qzRH5iDwpvGJJkOhpcFSrmrtTjVh0FHgLKlkWCbFCksXUX1BFMubjCUmyjLseYcWT1yr6An7EK/PX5rS80k0g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFrib8oauLytt6kev25TS7ZSMVUmUkm2PlWczS6sbWzMAiA9tX6my6VYfdjFLaCheTykik1Rx90wHTDHLsnnimAloQ=="}]},"maintainers":[{"name":"bruitt","email":"mor.hetz@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/stuckyfill-1.1.0.tgz_1475832814419_0.19879782083444297"}},"1.1.1":{"name":"@bruitt/stuckyfill","version":"1.1.1","description":"The most accurate sticky polyfill out in the wild.","main":"dist/index.js","scripts":{"build":"babel lib -d dist","prepublish":"BABEL_ENV=production npm run build","lint":"eslint ./lib","test":"echo \"Error: no test specified\" && exit 1","postversion":"git push && git push --tags"},"repository":{"type":"git","url":"git+https://github.com/bruitt/stuckyfill.git"},"author":{"name":"Oleg Korsunsky","url":"http://wd.dizaina.net/"},"license":"MIT","bugs":{"url":"https://github.com/bruitt/stuckyfill/issues"},"homepage":"https://github.com/bruitt/stuckyfill#readme","devDependencies":{"babel-cli":"^6.14.0","babel-core":"^6.14.0","babel-eslint":"^6.1.2","babel-preset-bruitt-lib":"^1.1.0","eslint":"^3.6.0","eslint-config-airbnb":"^12.0.0","eslint-plugin-import":"^1.16.0"},"gitHead":"8c1fc153f0e3f26307016558575823dec36be7d6","_id":"@bruitt/stuckyfill@1.1.1","_shasum":"f0a073d1e769edbd2f233817daef8cfae448b4cd","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.11.1","_npmUser":{"name":"bruitt","email":"mor.hetz@gmail.com"},"dist":{"shasum":"f0a073d1e769edbd2f233817daef8cfae448b4cd","tarball":"https://registry.npmjs.org/@bruitt/stuckyfill/-/stuckyfill-1.1.1.tgz","integrity":"sha512-HkCJeoQgixxTYaY48VEjZ87/Gc0kSUZ/JAlI9DqgwtYujJxp+2Tn2uSwuZODd7a8s70ObvUdOrUw3JTNFR/d/Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFnjdqVDXdneEhBemb3N9dmRxAuGlShMGfP3rhMZqhxIAiBOyZnQATK6jekjigw01JHnDjZlKqAu9CW4X5gCzD60Cg=="}]},"maintainers":[{"name":"bruitt","email":"mor.hetz@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/stuckyfill-1.1.1.tgz_1475832971462_0.1053861160762608"}}},"readme":"#`position: sticky` polyfill\n\nThe most accurate sticky polyfill out in the wild.\n\nCheck out [the demo](http://wd.dizaina.net/en/scripts/stickyfill/) and [use cases test page](http://wilddeer.github.io/stickyfill/test/).\n\n###What it does\n\n- supports top-positioned stickies,\n- works in IE9+,\n- disables in older IEs and in browsers with native `position: sticky` support.\n- Mimics original `position: sticky` behavior:\n\n\t- uses parent node as a boundary box,\n\t- behaves nicely with horizontal page scrolling,\n\t- only works on elements with specified `top`,\n\t- mimics native `top` and `margin-bottom` behavior,\n\t- ~~works with table cells~~ disabled until Firefox [makes a native implementation](https://bugzilla.mozilla.org/show_bug.cgi?id=975644)\n\n###What it doesn't\n\n- doesn't support left, right, bottom or combined stickies,\n- doesn't work in overflowed blocks,\n- doesn't parse your CSS! Launch it manually.\n\n###Installation\n\nDownload:\n\n- [stickyfill.min.js](https://raw.github.com/wilddeer/stickyfill/master/dist/stickyfill.min.js) – minified production script\n- [stickyfill.js](https://raw.github.com/wilddeer/stickyfill/master/dist/stickyfill.js) – full development script\n\nInclude it on your page:\n\n```html\n<script src=\"path/to/stickyfill.js\"></script>\n```\n\nAlso available in [Bower](http://bower.io):\n\n```\nbower install Stickyfill --save\n```\n\n###Usage\n\nJS:\n\n```js\nvar stickyElements = document.getElementsByClassName('sticky');\n\nfor (var i = stickyElements.length - 1; i >= 0; i--) {\n    Stickyfill.add(stickyElements[i]);\n}\n```\n\nor JS + jQuery:\n\n```js\n$('.sticky').Stickyfill();\n```\n\nCSS:\n\n```css\n.sticky {\n    position: -webkit-sticky;\n    position: sticky;\n    top: 0;\n}\n```\n\nAlso worth having a clearfix:\n\n```css\n.sticky:before,\n.sticky:after {\n    content: '';\n    display: table;\n}\n```\n\n###Pro tips\n\n- `top` specifies sticky's position relatively to the top edge of the viewport. It accepts negative values, too.\n- Despite common misconception, sticky's bottom limit is defined by its parent node's bottom boundary. It has nothing to do with `offsetParent` (closest relatively positioned parent).\n- You can push sticky's bottom limit up or down by specifying `margin-bottom`.\n- Any non-default value (not `visible`) for `overflow`, `overflow-x`, or `overflow-y` on any of the predecessor elements anchors the sticky to the overflow context of that predecessor. Simply speaking, scrolling the predecessor will cause the sticky to stick, scrolling the window will not. This is expected with `overflow: auto` and `overflow: scroll`, but often causes problems and confusion with `overflow: hidden`. Keep this in mind, folks!\n\nCheck out [the test page](http://wilddeer.github.io/stickyfill/test/) to understand stickies better.\n\n###API\n\n####`Stickyfill.add(HTMLNode)`\n\nAdd new sticky and `init()`, if necessary.\n\n####`Stickyfill.remove(HTMLNode)`\n\nRemove sticky.\n\n####`Stickyfill.rebuild()`\n\nRecalc all metrics and update stickies' positions.\n\nCall it after layout changes. Launches automatically after window resizes and device orientations changes.\n\n####`Stickyfill.pause()`\n\nRemove event listeners.\n\nUsefull for debugging. Use `Stickyfill.init()` to get stuff running again.\n\n####`Stickyfill.stop()`\n\nDisable stickies.\n\nUse `Stickyfill.init()` to enable them again.\n\n####`Stickyfill.kill()`\n\nDisable stickies and erase `Stickyfill.stickies`.\n\n####`Stickyfill.init()`\n\nAttach event listeners and start watching for stickies in `Stickyfill.stickies`.\n\n####`Stickyfill.stickies`\n\nArray of parametric objects for all added stickies.\n\n###Using Stickyfill?\n\nBe sure to drop me a link &rarr; [:envelope: wd@dizaina.net](mailto:wd@dizaina.net). Wanna see it in action.\n\n###License\n\n[MIT license](http://opensource.org/licenses/MIT).\n","maintainers":[{"email":"morhetz@gmail.com","name":"morhetz"},{"email":"mor.hetz@gmail.com","name":"bruitt-base"}],"time":{"modified":"2022-06-12T15:31:12.316Z","created":"2016-10-07T09:33:36.102Z","1.1.0":"2016-10-07T09:33:36.102Z","1.1.1":"2016-10-07T09:36:13.160Z"},"homepage":"https://github.com/bruitt/stuckyfill#readme","repository":{"type":"git","url":"git+https://github.com/bruitt/stuckyfill.git"},"author":{"name":"Oleg Korsunsky","url":"http://wd.dizaina.net/"},"bugs":{"url":"https://github.com/bruitt/stuckyfill/issues"},"license":"MIT","readmeFilename":"README.md"}