{"_id":"fixed-sticky","_rev":"11-06876d08fda785f80d20e247cfcc6bba","name":"fixed-sticky","description":"A position: sticky polyfill that works with filamentgroup/fixed-fixed for a safer position:fixed fallback.","dist-tags":{"latest":"0.1.7"},"versions":{"0.1.4":{"name":"fixed-sticky","version":"0.1.4","description":"A position: sticky polyfill that works with filamentgroup/fixed-fixed for a safer position:fixed fallback.","main":"fixedsticky.js","scripts":{"test":"grunt test","postinstall":"bower install"},"repository":{"type":"git","url":"git://github.com/filamentgroup/fixed-sticky.git"},"keywords":["sticky"],"author":{"name":"Zach Leatherman"},"license":"MIT","bugs":{"url":"https://github.com/filamentgroup/fixed-sticky/issues"},"devDependencies":{"grunt-cli":"~0.1.13","grunt":"~0.4.1","matchdep":"~0.3.0","grunt-contrib-clean":"~0.4.0","grunt-contrib-jshint":"~0.1.1","grunt-contrib-qunit":"~0.3.0","grunt-contrib-uglify":"~0.1.1","grunt-contrib-watch":"~0.5.3","grunt-gh-pages":"~0.8.1","bower":"~1.3.8"},"gitHead":"77c26f4ddebcb415bde270b227b9f7b874195d66","homepage":"https://github.com/filamentgroup/fixed-sticky","_id":"fixed-sticky@0.1.4","_shasum":"89a622f2d07c1a95eb1f08803138607b6aa89741","_from":".","_npmVersion":"2.7.0","_nodeVersion":"0.12.0","_npmUser":{"name":"tbranyen","email":"tim@tabdeveloper.com"},"maintainers":[{"name":"tbranyen","email":"tim@tabdeveloper.com"}],"dist":{"shasum":"89a622f2d07c1a95eb1f08803138607b6aa89741","tarball":"https://registry.npmjs.org/fixed-sticky/-/fixed-sticky-0.1.4.tgz","integrity":"sha512-cJ9BaP6ZV/BSs/L4sOr0ma4DfYt12n+zNnCSVAcqBpH9oJ7hEa1rR+Vf4UUyjNI7JDtMqHaS8mTwiKUFxqDdSg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCpgjZg6EvmceZqwZHN2cdQae1Dd1FuOBcUICEZSiKOjQIgSOURjZ+mtOfxiZXAT+4bTlgmej+WzchAR16OokvykOY="}]},"deprecated":"fixed-sticky is no longer maintained. Please see https://github.com/filamentgroup/fixed-sticky for more information."},"0.1.6":{"name":"fixed-sticky","version":"0.1.6","description":"A position: sticky polyfill that works with filamentgroup/fixed-fixed for a safer position:fixed fallback.","main":"fixedsticky.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git://github.com/filamentgroup/fixed-sticky.git"},"keywords":["sticky"],"author":{"name":"Zach Leatherman"},"license":"MIT","bugs":{"url":"https://github.com/filamentgroup/fixed-sticky/issues"},"devDependencies":{"grunt-cli":"~0.1.13","grunt":"~0.4.1","matchdep":"~0.3.0","grunt-contrib-clean":"~0.4.0","grunt-contrib-jshint":"~0.1.1","grunt-contrib-qunit":"~0.3.0","grunt-contrib-uglify":"~0.1.1","grunt-contrib-watch":"~0.5.3","grunt-gh-pages":"~0.8.1","bower":"~1.3.8"},"gitHead":"98e14693534b6d995c5d539c98320d54e88d51e5","homepage":"https://github.com/filamentgroup/fixed-sticky","_id":"fixed-sticky@0.1.6","_shasum":"77e6ba40a56c698bfeee199cf15a9f654c03d43e","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.10.33","_npmUser":{"name":"zachleat","email":"zachleatherman@gmail.com"},"maintainers":[{"name":"filamentgroup","email":"thegroup@filamentgroup.com"},{"name":"zachleat","email":"zachleatherman@gmail.com"}],"dist":{"shasum":"77e6ba40a56c698bfeee199cf15a9f654c03d43e","tarball":"https://registry.npmjs.org/fixed-sticky/-/fixed-sticky-0.1.6.tgz","integrity":"sha512-OZLf88LtCJSHF0uwz7qPAICjgj21nf2OzLwR6kmnyAuygV23bwp52fRfyOBwG2JWFkhV2HcCIdadRuaDbP+vlw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFcFv3FD8wCzWc7R9kkbKtGt42Ql3QT3AreZVaST6/lpAiEA1HOvV9Dw1fwCtdKULKyA7Pt/hbtULG9KHABuK2Xo+Ao="}]},"deprecated":"fixed-sticky is no longer maintained. Please see https://github.com/filamentgroup/fixed-sticky for more information."},"0.1.7":{"name":"fixed-sticky","version":"0.1.7","description":"A position: sticky polyfill that works with filamentgroup/fixed-fixed for a safer position:fixed fallback.","main":"fixedsticky.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git://github.com/filamentgroup/fixed-sticky.git"},"keywords":["sticky"],"author":{"name":"Zach Leatherman"},"license":"MIT","bugs":{"url":"https://github.com/filamentgroup/fixed-sticky/issues"},"devDependencies":{"grunt-cli":"~1.1.0","grunt":"~0.4.1","matchdep":"~1.0.0","grunt-contrib-clean":"~1.0.0","grunt-contrib-jshint":"~1.0.0","grunt-contrib-qunit":"~0.7.0","grunt-contrib-uglify":"~1.0.1","grunt-contrib-watch":"~1.0.0","grunt-gh-pages":"~1.0.0","bower":"~1.7.7"},"gitHead":"cd752571b89d0dcc0d2783feb8dda43cf4ff259d","homepage":"https://github.com/filamentgroup/fixed-sticky#readme","_id":"fixed-sticky@0.1.7","_shasum":"7ac41755ed1e75dc99d21206e05edcb283badbee","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.1.0","_npmUser":{"name":"zachleat","email":"zachleatherman@gmail.com"},"dist":{"shasum":"7ac41755ed1e75dc99d21206e05edcb283badbee","tarball":"https://registry.npmjs.org/fixed-sticky/-/fixed-sticky-0.1.7.tgz","integrity":"sha512-5S+kxsDg3k0ErD6x+8TwXlxnPli7hNn55ZzFx1IekTx2yWr8FiJaHO45LuLXNix3gUaARWCXihewzmdGNkVP2w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEs6jf//tUvu0d9sEmJnUU9L0ml+sGf+AlqqpvRC7ha3AiBHs2YJZCN0zbHEMJWPSW+gdKeuhWquWDAkbmKdN+nVAw=="}]},"maintainers":[{"name":"filamentgroup","email":"thegroup@filamentgroup.com"},{"name":"zachleat","email":"zachleatherman@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/fixed-sticky-0.1.7.tgz_1459546959068_0.004336596000939608"},"deprecated":"fixed-sticky is no longer maintained. Please see https://github.com/filamentgroup/fixed-sticky for more information."}},"readme":"# Fixed-sticky [![Build Status](https://travis-ci.org/filamentgroup/fixed-sticky.svg?branch=master)](https://travis-ci.org/filamentgroup/fixed-sticky)\n\nA CSS `position:sticky` polyfill.\n\n[![Filament Group](http://filamentgroup.com/images/fg-logo-positive-sm-crop.png) ](http://www.filamentgroup.com/)\n\n- ©2013 [@zachleat](https://github.com/zachleat), Filament Group\n- MIT license\n\n## Browser Support\n\nCSS position:sticky is in its infancy in terms of browser support. In stock browsers, it is available in Firefox 32+ and prefixed in Safari on iOS 6+ and Safari 6.1+.\n\n~~In Chrome you can enable it by navigating to `chrome://flags` and enabling experimental “WebKit features” or “Web Platform features” (Canary).~~ Chrome temporarily removed their native `position: sticky` implementation.\n\n## Important\n\nThe most overlooked thing about `position: sticky` is that `sticky` elements are constrained to the dimensions of their parent elements. This means if a `sticky` element is inside of a parent container that is the same dimensions as itself, the element will not stick.\n\nHere’s an example of what a `sticky` element with CSS `top: 20px` behaves like:\n\n![](demos/gifs/sticky-top-off.gif)\n\n*Scrolling down.* The blue border represents the dimensions of the parent container element. If the element’s top is greater than `20px` to the top of the viewport, the element is not sticky.\n\n![](demos/gifs/sticky-top-on.gif)\n\n*Scrolling down.* When the element’s top is less than `20px` to the top of the viewport, the element is sticky.\n\nHere’s an example of what a `sticky` element with CSS `bottom: 20px` behaves like:\n\n![](demos/gifs/sticky-bottom-off.gif)\n\n*Scrolling up.* Not sticky.\n\n![](demos/gifs/sticky-bottom-on.gif)\n\n*Scrolling up.* Sticky.\n\n## Plugin Usage\n\nJust qualify element you’d like to be `position:sticky` with a `fixedsticky` class.\n\n    <div id=\"my-element\" class=\"fixedsticky\">\n\nAdd your own CSS to position the element. Supports any value for `top` or `bottom`.\n\n    .fixedsticky { top: 0; }\n\nNext, add the events and initialize your sticky nodes:\n\n    $( '#my-element' ).fixedsticky();\n\n*Note: if you’re going to use non-zero values for `top` or `bottom`, fixed-sticky is victim to a cross-browser incompatibility with jQuery’s `css` method (namely, IE8- doesn’t normalize non-pixel values to pixels). Use pixels (or `0`) for best cross-browser compatibility.*\n\nOptionally, you may also destroy the component:\n\n    $( '#my-element' ).fixedsticky( 'destroy' );\n\n## Demos\n* For a fixed-sticky demo, open [`demo.html`](http://filamentgroup.github.com/fixed-sticky/demos/demo.html).\n* For a pure native position: sticky test, open [`demo-control.html`](http://filamentgroup.github.com/fixed-sticky/demos/demo-control.html).\n\n## Native `position: sticky` Caveats\n\n* Any non-default value (not `visible`) for `overflow`, `overflow-x`, or `overflow-y` on the parent element will disable `position: sticky` (via [@davatron5000](https://twitter.com/davatron5000/status/434357818498351104)).\n* iOS ~~(and Chrome)~~ do not support `position: sticky;` with `display: inline-block;`.\n* This plugin ~~(and Chrome’s implementation)~~ does not (yet) support use with `thead` and `tfoot`.\n* Native `sticky` anchors to parent elements using their own overflow. This means scrolling the element fixes the sticky element to the parent dimensions. This plugin does not support overflow on parent elements.\n\n### Using the polyfill instead of native\n\nIf you’re having weird issues with native `position: sticky`, you can tell fixed-sticky to use the polyfill instead of native. Just override the sticky feature test to always return false. Make sure you do this before any calls to `$( '#my-element' ).fixedsticky();`.\n\n    // After fixed-sticky.js\n    FixedSticky.tests.sticky = false;\n\n* [`demo-opt-out-native.html`](http://filamentgroup.github.com/fixed-sticky/demos/demo-opt-out-native.html) shows this behavior.\n\n## Installation\n\nUse the provided `fixedsticky.js` and `fixedsticky.css` files.\n\n### Also available in [Bower](http://bower.io/)\n\n    bower install filament-sticky\n\n## Browser Support\n\nThese tests were performed using fixed-sticky with fixed-fixed. It’s safest to use them together (`position:fixed` is a minefield on older devices), but they can be used independently.\n\n### Native Sticky\n\n* iOS 6.1+\n\n### Polyfilled\n\n* Internet Explorer 7, 8, 9, 10\n* Firefox 24, Firefox 17 ESR\n* Chrome 29\n* Safari 6.0.5\n* Opera 12.16\n* Android 4.X\n\n### Fallback (static positioning)\n\n* Android 2.X\n* Opera Mini\n* Blackberry OS 5, 6, 7\n* Windows Phone 7.5\n\n## TODO\n\n* Add support for table headers.\n* Vanilla JS version.\n* Make sticky smoother on transition between sticky/static for container based\n\n## [Tests](http://filamentgroup.github.io/fixed-sticky/test/fixed-sticky.html)\n\n## Release History\n\n* `v0.1.0`: Initial release.\n* `v0.1.3`: Bug fixes, rudimentary tests, destroy method.\n","maintainers":[{"name":"filamentgroup","email":"thegroup@filamentgroup.com"},{"name":"zachleat","email":"zachleatherman@gmail.com"}],"time":{"modified":"2022-06-18T01:48:58.191Z","created":"2015-03-25T00:21:05.758Z","0.1.4":"2015-03-25T00:21:05.758Z","0.1.6":"2015-04-01T22:56:27.244Z","0.1.7":"2016-04-01T21:42:41.798Z"},"homepage":"https://github.com/filamentgroup/fixed-sticky#readme","keywords":["sticky"],"repository":{"type":"git","url":"git://github.com/filamentgroup/fixed-sticky.git"},"author":{"name":"Zach Leatherman"},"bugs":{"url":"https://github.com/filamentgroup/fixed-sticky/issues"},"license":"MIT","readmeFilename":"README.md","users":{"landen":true,"areasis":true}}