{"_id":"zebra_pin","_rev":"13-94d24a3890a98ebc63a4c7b550b86180","name":"zebra_pin","description":"A lightweight jQuery plugin for creating sticky elements pinned to the page or to a container element","dist-tags":{"latest":"3.0.1"},"versions":{"1.0.6":{"name":"zebra_pin","version":"1.0.6","main":"public/javascript/zebra_pin.js","homepage":"https://github.com/stefangabos/Zebra_Pin","author":{"name":"Stefan Gabos","email":"contact@stefangabos.ro"},"description":"Zebra_Pin is a lightweight (less than 2KB minified) and adaptive jQuery plugin for pinning any element to the page or to a container element, so that the element stays visible even if the user scrolls the page. This type of elements are also referred to a","repository":{"type":"git","url":"git+https://github.com/stefangabos/Zebra_Pin.git"},"bugs":{"url":"https://github.com/stefangabos/Zebra_Pin/issues","email":"contact@stefangabos.ro"},"keywords":["fixed","sticky","pin","scrolling","position","floating","ui"],"licenses":[{"type":"LGPL","url":"https://www.gnu.org/licenses/lgpl-3.0.txt"}],"devDependencies":{"grunt":"*","grunt-contrib-jshint":"*","grunt-contrib-uglify":"*","grunt-cli":"*","grunt-contrib-watch":"*"},"gitHead":"45b402ebe4c2340ca75c1958ab1207ebd9c2bb88","_id":"zebra_pin@1.0.6","scripts":{},"_shasum":"0cce5477b9be58aec134a9ecc85b278536b39b89","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"stefangabos","email":"a@b.com"},"maintainers":[{"name":"stefangabos","email":"a@b.com"}],"dist":{"shasum":"0cce5477b9be58aec134a9ecc85b278536b39b89","tarball":"https://registry.npmjs.org/zebra_pin/-/zebra_pin-1.0.6.tgz","integrity":"sha512-9pfjxJYxs9vl/UlJNBu7h6TVeSoOg8E050lj89sPNqZIHbp7BclLlRZrK4kcuFVdSvPJY1z5CgYVyBBcTQfBlQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGQCNX0lFII18hk0xM+bXpb5ex4o6bGrBlxjpmrEcik0AiEAuSEF/oYohbL/yR0QOKbuiwcTxvzlc6V+y+/+y7zdpBU="}]},"directories":{}},"1.0.7":{"name":"zebra_pin","version":"1.0.7","main":"public/javascript/zebra_pin.js","homepage":"https://github.com/stefangabos/Zebra_Pin","author":{"name":"Stefan Gabos","email":"contact@stefangabos.ro"},"description":"Zebra_Pin is a lightweight (less than 2KB minified) and adaptive jQuery plugin for pinning any element to the page or to a container element, so that the element stays visible even if the user scrolls the page. This type of elements are also referred to a","repository":{"type":"git","url":"git+https://github.com/stefangabos/Zebra_Pin.git"},"bugs":{"url":"https://github.com/stefangabos/Zebra_Pin/issues","email":"contact@stefangabos.ro"},"keywords":["fixed","sticky","pin","scrolling","position","floating","ui"],"licenses":[{"type":"LGPL","url":"https://www.gnu.org/licenses/lgpl-3.0.txt"}],"devDependencies":{"grunt":"*","grunt-contrib-jshint":"*","grunt-contrib-uglify":"*","grunt-cli":"*","grunt-contrib-watch":"*"},"gitHead":"03d3b3428d66c7e4f620e70299f1ab549e5dc897","_id":"zebra_pin@1.0.7","scripts":{},"_shasum":"f3d6996ff1aaff90f402b253b17b72c5d75cff90","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"stefangabos","email":"a@b.com"},"maintainers":[{"name":"stefangabos","email":"contact@stefangabos.ro"}],"dist":{"shasum":"f3d6996ff1aaff90f402b253b17b72c5d75cff90","tarball":"https://registry.npmjs.org/zebra_pin/-/zebra_pin-1.0.7.tgz","integrity":"sha512-fgmiuYnEW7XTjucC4fUPXJ1qpoCqT1/4HtB3RtsQGigU5An1n4Ke+/9t+CZ+b68QSSRcbkr3XE++Nf8HTYN20w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCfNSNJg2XrmQPAmPDx7JpMZFmoEvu5WbZFGWjjJud2YwIgO35eclgK/gCL9UMycthMGAtRS4Rm7VLi/mkP4eJwr+A="}]},"directories":{}},"1.0.8":{"name":"zebra_pin","version":"1.0.8","main":"public/javascript/zebra_pin.js","homepage":"https://github.com/stefangabos/Zebra_Pin","author":{"name":"Stefan Gabos","email":"contact@stefangabos.ro"},"description":"Zebra_Pin is a lightweight (less than 2KB minified) and adaptive jQuery plugin for pinning any element to the page or to a container element, so that the element stays visible even if the user scrolls the page. This type of elements are also referred to a","repository":{"type":"git","url":"git+https://github.com/stefangabos/Zebra_Pin.git"},"bugs":{"url":"https://github.com/stefangabos/Zebra_Pin/issues","email":"contact@stefangabos.ro"},"keywords":["jquery-plugin","ecosystem:jquery","fixed","sticky","pin","scrolling","position","floating","ui"],"licenses":[{"type":"LGPL","url":"https://www.gnu.org/licenses/lgpl-3.0.txt"}],"devDependencies":{"grunt":"*","grunt-contrib-jshint":"*","grunt-contrib-uglify":"*","grunt-cli":"*","grunt-contrib-watch":"*"},"gitHead":"b578a12d4f05359aa84aed6a708725c556c3d146","_id":"zebra_pin@1.0.8","scripts":{},"_shasum":"8033dc89f189fdcf775f69affdf77349d08ec244","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"stefangabos","email":"a@b.com"},"maintainers":[{"name":"stefangabos","email":"contact@stefangabos.ro"}],"dist":{"shasum":"8033dc89f189fdcf775f69affdf77349d08ec244","tarball":"https://registry.npmjs.org/zebra_pin/-/zebra_pin-1.0.8.tgz","integrity":"sha512-uVQQ7Sto0VXyUYksap73WT/tCnOoYmwdZfzfSbGEoznkAFUCyhx2E3YSxzgMInLeCK7Y3KfHVSBolRKbG/xZFQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGCRKx9YYadiRpOm1KzQJrOuH1myRhAN/22xO9ulgAE6AiEA2Hnu7Tgp7u+nLBVyxhd+8XHShm0HJyGjc/hELV3dpuY="}]},"directories":{}},"1.0.9":{"name":"zebra_pin","version":"1.0.9","main":"public/javascript/zebra_pin.js","homepage":"https://github.com/stefangabos/Zebra_Pin","author":{"name":"Stefan Gabos","email":"contact@stefangabos.ro"},"description":"A lightweight jQuery plugin for pinning any element to the page or to a container element","repository":{"type":"git","url":"git+https://github.com/stefangabos/Zebra_Pin.git"},"bugs":{"url":"https://github.com/stefangabos/Zebra_Pin/issues","email":"contact@stefangabos.ro"},"keywords":["jquery-plugin","ecosystem:jquery","fixed","sticky","pin","scrolling","position","floating","ui"],"licenses":[{"type":"LGPL","url":"https://www.gnu.org/licenses/lgpl-3.0.txt"}],"devDependencies":{"grunt":"*","grunt-contrib-jshint":"*","grunt-contrib-uglify":"*","grunt-cli":"*","grunt-contrib-watch":"*"},"gitHead":"474133aeb12376ea00aee0f6b844159e38448918","_id":"zebra_pin@1.0.9","scripts":{},"_shasum":"8300c5e2b2f22da5b9e5b35c4bf33ef2399d6030","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"stefangabos","email":"a@b.com"},"maintainers":[{"name":"stefangabos","email":"contact@stefangabos.ro"}],"dist":{"shasum":"8300c5e2b2f22da5b9e5b35c4bf33ef2399d6030","tarball":"https://registry.npmjs.org/zebra_pin/-/zebra_pin-1.0.9.tgz","integrity":"sha512-G5aPsjF7KVe22GPTMezB3Ct40dinaBe4IXRSwZXTFgrYeGJB1kE4I0AfsaD1est1dYDJeYlXfm6LFGcdOR/T7g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA/2ZxZWHFCPXv8z7Lv1e01YGcc1JhTdOpkDVHKNMDtdAiAYuL5fwnWwOzEjLw6LtW9H/RFV5yzNOXQdjEMpTa0I2g=="}]},"directories":{}},"1.1.0":{"name":"zebra_pin","version":"1.1.0","main":"public/javascript/zebra_pin.js","homepage":"https://github.com/stefangabos/Zebra_Pin","author":{"name":"Stefan Gabos","email":"contact@stefangabos.ro"},"description":"A lightweight jQuery plugin for pinning any element to the page or to a container element","repository":{"type":"git","url":"git+https://github.com/stefangabos/Zebra_Pin.git"},"bugs":{"url":"https://github.com/stefangabos/Zebra_Pin/issues","email":"contact@stefangabos.ro"},"keywords":["jquery-plugin","ecosystem:jquery","fixed","sticky","pin","scrolling","position","floating","ui"],"license":"LGPL-3.0","devDependencies":{"grunt":"*","grunt-cli":"*","grunt-contrib-copy":"*","grunt-contrib-jshint":"*","grunt-contrib-uglify":"*","grunt-contrib-watch":"*","grunt-eslint":"*","grunt-newer":"*","grunt-notify":"*","time-grunt":"*"},"gitHead":"2c86868ab6933cdfc85fd056f2081342195c59e9","_id":"zebra_pin@1.1.0","scripts":{},"_shasum":"82b6a73874d0eba4c12c665ce3e80f66c691cf31","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"stefangabos","email":"contact@stefangabos.ro"},"dist":{"shasum":"82b6a73874d0eba4c12c665ce3e80f66c691cf31","tarball":"https://registry.npmjs.org/zebra_pin/-/zebra_pin-1.1.0.tgz","integrity":"sha512-SraMRsw0ionAJLSE0590u9PMnUS/4whLWGs0KFWD7zfIMyIsmZVSElBUU+v8E5gEq4q3fXN0e3DxEwbDjFdlLw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEK/KaJzaBoue5apLouz3fb6fFtTtk67q6E67F+Bpza0AiBUlFPqKtgE777U1qgMEug4Pulms6NasIQ4m/hwrNuCPw=="}]},"maintainers":[{"name":"stefangabos","email":"contact@stefangabos.ro"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zebra_pin-1.1.0.tgz_1495791326020_0.8304179918486625"},"directories":{}},"1.1.1":{"name":"zebra_pin","version":"1.1.1","main":"public/javascript/zebra_pin.js","homepage":"https://github.com/stefangabos/Zebra_Pin","author":{"name":"Stefan Gabos","email":"contact@stefangabos.ro"},"description":"A lightweight jQuery plugin for pinning any element to the page or to a container element","repository":{"type":"git","url":"git+https://github.com/stefangabos/Zebra_Pin.git"},"bugs":{"url":"https://github.com/stefangabos/Zebra_Pin/issues","email":"contact@stefangabos.ro"},"keywords":["jquery-plugin","ecosystem:jquery","fixed","sticky","pin","scrolling","position","floating","ui"],"license":"LGPL-3.0","devDependencies":{"grunt":"*","grunt-cli":"*","grunt-contrib-copy":"*","grunt-contrib-jshint":"*","grunt-contrib-uglify":"*","grunt-contrib-watch":"*","grunt-eslint":"*","grunt-newer":"*","grunt-notify":"*","time-grunt":"*"},"gitHead":"12da2bf7f50d6f7593054bf098dd40552ecfd0d0","_id":"zebra_pin@1.1.1","scripts":{},"_shasum":"ed131ecbce271e89e74ca9a350937618962ddc48","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"stefangabos","email":"contact@stefangabos.ro"},"dist":{"shasum":"ed131ecbce271e89e74ca9a350937618962ddc48","tarball":"https://registry.npmjs.org/zebra_pin/-/zebra_pin-1.1.1.tgz","integrity":"sha512-HxxPm7fi+CkXOCrAxuBII74QRCtyFY5NgN1S/Vy6IiOgnM3PU2216Dt5SiYP8W5jYOQ0vpCLbYGM+GFm7J9eRg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCV7TFwtQCXIMG+H7BBOU/j/NDN71j8ZGVqOPQl2nBbuAIhAJM5ilfxV5Ipg+5BHff9phkWI05GCwobwHpJhHYj0d66"}]},"maintainers":[{"name":"stefangabos","email":"contact@stefangabos.ro"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zebra_pin-1.1.1.tgz_1495798307991_0.6729081124067307"},"directories":{}},"1.1.2":{"name":"zebra_pin","version":"1.1.2","main":"dist/zebra_pin.min.js","homepage":"https://github.com/stefangabos/Zebra_Pin","author":{"name":"Stefan Gabos","email":"contact@stefangabos.ro"},"description":"A lightweight jQuery plugin for pinning any element to the page or to a container element","repository":{"type":"git","url":"git+https://github.com/stefangabos/Zebra_Pin.git"},"bugs":{"url":"https://github.com/stefangabos/Zebra_Pin/issues","email":"contact@stefangabos.ro"},"keywords":["jquery-plugin","ecosystem:jquery","fixed","sticky","pin","scrolling","position","floating","ui"],"license":"LGPL-3.0","devDependencies":{"grunt":"*","grunt-cli":"*","grunt-contrib-copy":"*","grunt-contrib-jshint":"*","grunt-contrib-uglify":"*","grunt-contrib-watch":"*","grunt-eslint":"*","grunt-newer":"*","grunt-notify":"*","time-grunt":"*"},"gitHead":"8b2e3648254421a2c69d85f4ac9784953489b2f4","_id":"zebra_pin@1.1.2","scripts":{},"_shasum":"cd204b7ac01070ea3b74b60882288cff7cb7c6a4","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"stefangabos","email":"contact@stefangabos.ro"},"dist":{"shasum":"cd204b7ac01070ea3b74b60882288cff7cb7c6a4","tarball":"https://registry.npmjs.org/zebra_pin/-/zebra_pin-1.1.2.tgz","integrity":"sha512-Ik2GbYWYdpw8eg+eYv5EQ9GNubJqb7aam4FvY5OVbN/nFYprraE/REzwgQRU8xp8LweqeRSOiFz9YACATJqU9w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDw76hkie4Phz2A44leFEkRZBEyRSJLHtrwA1UbUq/wzAiEA2SbG89UN742B95LqhlZ1eilF2XA56O2HkQN5giWhWig="}]},"maintainers":[{"name":"stefangabos","email":"contact@stefangabos.ro"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zebra_pin-1.1.2.tgz_1496140449325_0.7430117675103247"},"directories":{}},"2.0.0":{"name":"zebra_pin","version":"2.0.0","main":"dist/zebra_pin.min.js","homepage":"https://github.com/stefangabos/Zebra_Pin","author":{"name":"Stefan Gabos","email":"contact@stefangabos.ro"},"description":"A lightweight jQuery plugin for pinning any element to the page or to a container element","repository":{"type":"git","url":"git+https://github.com/stefangabos/Zebra_Pin.git"},"bugs":{"url":"https://github.com/stefangabos/Zebra_Pin/issues","email":"contact@stefangabos.ro"},"keywords":["jquery-plugin","ecosystem:jquery","fixed","sticky","pin","scrolling","position","floating","ui"],"license":"LGPL-3.0","devDependencies":{"grunt":"*","grunt-cli":"*","grunt-contrib-copy":"*","grunt-contrib-jshint":"*","grunt-contrib-uglify":"*","grunt-contrib-watch":"*","grunt-eslint":"*","grunt-newer":"*","grunt-notify":"*","time-grunt":"*"},"gitHead":"2295775b30e1cf600de932fe899432eb2de62fdc","_id":"zebra_pin@2.0.0","scripts":{},"_shasum":"3b351181a413c32975bf81b58bf5c5df59b41dac","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"stefangabos","email":"contact@stefangabos.ro"},"dist":{"shasum":"3b351181a413c32975bf81b58bf5c5df59b41dac","tarball":"https://registry.npmjs.org/zebra_pin/-/zebra_pin-2.0.0.tgz","fileCount":11,"unpackedSize":67192,"integrity":"sha512-rIovVuDqtiftTzEsJm+flBQ4SrmVfRxZ3OT9hI5f9ng0xITwfaCAW6wtIlixJsFGYIFxt3f5/8/1UxfGccszKg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCYfRd2hcnO4xJR6dzuL8NAhvy4A3uegW1ZYpSsy9s8FwIhAKaZUJDZAxLOLiFsA808pRXzb3750/JvnHZspUvIBsTx"}]},"maintainers":[{"name":"stefangabos","email":"contact@stefangabos.ro"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zebra_pin_2.0.0_1532341784923_0.3608385502736777"},"_hasShrinkwrap":false},"3.0.0":{"name":"zebra_pin","version":"3.0.0","main":"dist/zebra_pin.min.js","homepage":"https://github.com/stefangabos/Zebra_Pin","author":{"name":"Stefan Gabos","email":"contact@stefangabos.ro"},"description":"A lightweight jQuery plugin for creating sticky elements pinned to the page or to a container element","repository":{"type":"git","url":"git+https://github.com/stefangabos/Zebra_Pin.git"},"bugs":{"url":"https://github.com/stefangabos/Zebra_Pin/issues","email":"contact@stefangabos.ro"},"keywords":["pinned-elements","sticky-elements","fixed","pinned","sticky","sticky-sidebar","sticky-header"],"license":"LGPL-3.0","devDependencies":{"ansi-regex":">=6.0.1","grunt":"^1.5.3","grunt-cli":"^1.4.3","grunt-contrib-copy":"*","grunt-contrib-jshint":"^3.2.0","grunt-contrib-uglify":"^4.0.1","grunt-contrib-watch":"*","grunt-eslint":"^24.0.0","grunt-newer":"*","grunt-notify":"*","time-grunt":"^2.0.0"},"gitHead":"569d40b757100f5375f0d3d477c9f1f99f9ccf3e","_id":"zebra_pin@3.0.0","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-2svQTGpd2BKhKXZmIMGSgBDy3GcK7yBJS17WqT3nqw7Fsoq9cHgrAHot9QyXw2AH7fR7q1mlIUGZRdQF4FYgEw==","shasum":"3079e5d1896af5aaf8aaec2bee46b49ef6daef26","tarball":"https://registry.npmjs.org/zebra_pin/-/zebra_pin-3.0.0.tgz","fileCount":11,"unpackedSize":67120,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBwzUGE41C3sjEzoQhlCW3/238s5HkfbbJblVaua0LuXAiAlM/XUx9nhwgH/VaI6k9cTErhQymiNu/6CwQSKhpLNfQ=="}]},"_npmUser":{"name":"stefangabos","email":"contact@stefangabos.ro"},"directories":{},"maintainers":[{"name":"stefangabos","email":"contact@stefangabos.ro"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zebra_pin_3.0.0_1688927099192_0.05171652132167348"},"_hasShrinkwrap":false},"3.0.1":{"name":"zebra_pin","version":"3.0.1","main":"dist/zebra_pin.min.js","homepage":"https://github.com/stefangabos/Zebra_Pin","author":{"name":"Stefan Gabos","email":"contact@stefangabos.ro"},"description":"A lightweight jQuery plugin for creating sticky elements pinned to the page or to a container element","repository":{"type":"git","url":"git+https://github.com/stefangabos/Zebra_Pin.git"},"bugs":{"url":"https://github.com/stefangabos/Zebra_Pin/issues","email":"contact@stefangabos.ro"},"keywords":["pinned-elements","sticky-elements","fixed","pinned","sticky","sticky-sidebar","sticky-header"],"license":"LGPL-3.0","devDependencies":{"grunt":"^1.5.3","grunt-cli":"^1.4.3","grunt-contrib-copy":"*","grunt-contrib-jshint":"^3.2.0","grunt-contrib-uglify":"^5.2.2","grunt-contrib-watch":"*","grunt-eslint":"^25.0.0","grunt-newer":"*","grunt-notify":"*","time-grunt":"^2.0.0"},"_id":"zebra_pin@3.0.1","gitHead":"253ea1a4133347dffe47b2401fbe32d1c1a3859c","_nodeVersion":"20.10.0","_npmVersion":"10.6.0","dist":{"integrity":"sha512-o1SI9IVgff5Ab0jRLgDdXCJFQSj+aN7R+yjmr7nOqar203La0BUNG+EgccMxPbrEQik9AIo36zPJz9qMvDId8A==","shasum":"d31ed0ad540fe938f8e9aeb0979bc6eb49547d75","tarball":"https://registry.npmjs.org/zebra_pin/-/zebra_pin-3.0.1.tgz","fileCount":10,"unpackedSize":65405,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDtj/1LaUf3cKWHJ67gTf5VMkwvB8rIIMVKaY8Jb4jthQIgLDF9WkfJfTXjRW46Jb/B3iSx8eVDtaApCbnBoT8PTz4="}]},"_npmUser":{"name":"stefangabos","email":"contact@stefangabos.ro"},"directories":{},"maintainers":[{"name":"stefangabos","email":"contact@stefangabos.ro"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zebra_pin_3.0.1_1715588660825_0.7429127222464482"},"_hasShrinkwrap":false}},"readme":"<img src=\"https://raw.githubusercontent.com/stefangabos/zebrajs/master/docs/images/logo.png\" alt=\"zebrajs\" align=\"right\">\n\n# Zebra Pin &nbsp;[![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=A+lightweight+jQuery+plugin+for+creating+sticky+elements+pinned+to+the+page+or+to+a+container+element&url=https://github.com/stefangabos/Zebra_Pin&via=stefangabos&hashtags=jquery,javascript,pin,sticky,pinned)\n\n*A lightweight and adaptive jQuery plugin for creating sticky elements pinned to the page or to a container element*\n\n[![npm](https://img.shields.io/npm/v/zebra_pin.svg)](https://www.npmjs.com/package/zebra_pin) [![Total](https://img.shields.io/npm/dt/zebra_pin.svg)](https://www.npmjs.com/package/zebra_pin) [![Monthly](https://img.shields.io/npm/dm/zebra_pin.svg)](https://www.npmjs.com/package/zebra_pin) [![](https://data.jsdelivr.com/v1/package/npm/zebra_pin/badge?style=rounded)](https://www.jsdelivr.com/package/npm/zebra_pin) [![License](https://img.shields.io/npm/l/zebra_pin.svg)](https://github.com/stefangabos/Zebra_Pin/blob/master/LICENSE.md)\n\nZebra_Pin is a lightweight (2.5KB minified, ~800 bytes gzipped) and adaptive (things work as expected when the browser window is resized) jQuery plugin for pinning elements to the page or to a container element, so that pinned elements remain visible when they are about to be scrolled out of view. This type of elements are also referred to as *fixed position elements* or *sticky elements*.\n\nUse it to create sticky sidebars, sticky navigation, sticky headers and footers, or anything else you feel the need to make it stick to the page while the user scrolls.\n\nYou can have \"hard\" pinned elements - elements are pinned to their initial position and stay there, elements that become pinned when they are about to be scrolled out of view, as well as pinned elements that can move only inside their parent element's boundaries.\n\nPinned elements are added a user-defined CSS class so you can adjust their looks when pinned. Additionally, custom events are fired when elements become pinned/unpinned giving you even more power for customizing the result.\n\nWorks in pretty much any browser - Firefox, Chrome, Safari, Edge, Opera and Internet Explorer 7+\n\n## Features\n\n - elements can be pinned inside a container element, not just to the page\n - pinned elements are added a user-defined CSS class so you can adjust their looks when pinned\n - custom events are fired when elements become pinned/unpinned giving you even more power for customizing the result\n - it is really small - it weights 2.5KB minified (~800 bytes gzipped) offering a very good ratio of features per used bytes\n - it's cross-browser - works in every major browser and IE7+\n\n## 🎂 Support the development of this project\n\nYour support means a lot and it keeps me motivated to keep working on open source projects.<br>\nIf you like this project please ⭐ it by clicking on the star button at the top of the page.<br>\nIf you are feeling generous, you can buy me a coffee by donating through PayPal, or you can become a sponsor.<br>\nEither way - **Thank you!** 🎉\n\n[<img src=\"https://img.shields.io/github/stars/stefangabos/zebra_pin?color=green&label=star%20it%20on%20GitHub\" width=\"132\" height=\"20\" alt=\"Star it on GitHub\">](https://github.com/stefangabos/Zebra_Pin) [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=K8HEUNMPV65R4) [<img src=\"https://img.shields.io/badge/-Sponsor-fafbfc?logo=GitHub%20Sponsors\">](https://github.com/sponsors/stefangabos)\n\n## Demo\n\nSee the [demos](https://stefangabos.github.io/Zebra_Pin/)\n\n## Requirements\n\nZebra Pin has no dependencies other than jQuery 1.7+\n\n## Installation\n\nZebra Pin is available as a [npm package](https://www.npmjs.com/package/zebra_pin). To install it use:\n\n```bash\n# the \"--save\" argument adds the plugin as a dependency in packages.json\nnpm install zebra_pin --save\n```\n\n## How to use\n\nFirst, load the latest version of jQuery from a CDN and provide a fallback to a local source, like:\n\n```html\n<script src=\"https://code.jquery.com/jquery-3.7.0.min.js\"></script>\n<script>window.jQuery || document.write('<script src=\"path/to/local/jquery-3.7.0.js\"><\\/script>')</script>\n```\n\nLoad the Zebra Pin jQuery plugin:\n\n```html\n<script src=\"path/to/zebra_pin.min.js\"></script>\n```\n\nAlternatively, you can load Zebra Pin from [JSDelivr CDN](https://www.jsdelivr.com/package/npm/zebra_pin) like this:\n\n```html\n<!-- for the most recent version, not recommended in production -->\n<script\n    src=\"https://cdn.jsdelivr.net/npm/zebra_pin@latest/dist/zebra_pin.min.js\"></script>\n\n<!-- for a specific version -->\n<script\n    src=\"https://cdn.jsdelivr.net/npm/zebra_pin@3.0.0/dist/zebra_pin.min.js\"></script>\n\n<!-- replacing \"min\" with \"src\" will serve you the non-compressed version -->\n```\n\nNow, within the DOM-ready event, pin elements to page or to a container:\n\n```javascript\n$(document).ready(function() {\n\n    // easiest way to get started: when the user scrolls to the element\n    // the element will become pinned (sticky)\n    new $.Zebra_Pin($('#element'));\n\n    // in the example above, the element will be at the very top edge of the\n    // screen. if you want to add some top margin simply set the \"top_spacing\"\n    // property\n    new $.Zebra_Pin($('#element'), {\n        top_spacing: 10\n    });\n\n    // if you want the element to be restricted to the height of the container\n    // element, simply set the value of the \"container\" property to TRUE\n    // (make sure the container element has its \"position\" set to \"relative\" or\n    // \"absolute\")\n    new $.Zebra_Pin($('#element'), {\n        contained: true\n    });\n\n    // or, you may want to pin an element *exactly* to the position where it's at\n    // and make it stay there no matter what (we'll call this a \"hard\" pin)\n    new $.Zebra_Pin($('#element'), {\n        hard: true\n    });\n\n});\n```\n\n## Configuration options\n\n## Properties\n\n<table width=\"100%\">\n    <thead>\n    <tr>\n        <th>Property</th>\n        <th>Type</th>\n        <th>Default</th>\n        <th>Description</th>\n    </tr>\n    </thead>\n    <tbody>\n    <tr>\n        <td valign=\"top\"><code>class_name</code></td>\n        <td valign=\"top\"><em>string</em></td>\n        <td valign=\"top\">\"Zebra_Pin\"</td>\n        <td valign=\"top\">CSS class to be added to the element when it becomes pinned</td>\n    </tr>\n    <tr>\n        <td valign=\"top\"><code>contain</code></td>\n        <td valign=\"top\"><em>boolean</em></td>\n        <td valign=\"top\">false</td>\n        <td valign=\"top\">\n            Specifies whether the pinned element should be restricted to its parent element's boundaries or not.<br><br>\n            <blockquote>The container element <strong>must</strong> have its <code>position</code> set to something other than the default <code>static</code></blockquote>\n        </td>\n    </tr>\n    <tr>\n        <td valign=\"top\"><code>hard</code></td>\n        <td valign=\"top\"><em>boolean</em></td>\n        <td valign=\"top\">false</td>\n        <td valign=\"top\">\n            Specifies whether the element should be \"hard\" pinned (the element is pinned to its position from the\n            beginning), or become pinned only when it is about to go out of view.\n        </td>\n    </tr>\n    <tr>\n        <td valign=\"top\"><code>top_spacing</code></td>\n        <td valign=\"top\"><em>integer</em></td>\n        <td valign=\"top\">0</td>\n        <td valign=\"top\">\n            Distance, in pixels, from the browser window's top (or the container element's top, when the element is contained to its parent element's boundaries) from which the element should become pinned.<br>\n            This only works if the <code>hard</code> property is set to <code>false</code>.\n        </td>\n    </tr>\n    <tr>\n        <td valign=\"top\"><code>bottom_spacing</code></td>\n        <td valign=\"top\"><em>integer</em></td>\n        <td valign=\"top\">0</td>\n        <td valign=\"top\">\n            Distance, in pixels, from the containing parent element's bottom which the pinned element must not exceed.<br>\n            This only works if the <code>hard</code> property is set to <code>false</code> and the <cpde>contain</code> property is set to <code>true</code>\n        </td>\n    </tr>\n    <tr>\n        <td valign=\"top\"><code>z_index</code></td>\n        <td valign=\"top\"><em>integer</em></td>\n        <td valign=\"top\">1000</td>\n        <td valign=\"top\">\n            The value of zIndex CSS property to be set for pinned elements\n        </td>\n    </tr>\n    </tbody>\n</table>\n\n## Events\n\n<table width=\"100%\">\n    <thead>\n    <tr>\n        <th>Event</th>\n        <th width=\"100%\">Description</th>\n    </tr>\n    </thead>\n    <tbody>\n    <tr>\n        <td valign=\"top\"><code>onPin</code></td>\n        <td valign=\"top\">\n            Callback function to be executed when an element becomes pinned<br>\n            The callback function receives as argument the element that was pinned<br><br>\n        </td>\n    </tr>\n    <tr>\n        <td valign=\"top\"><code>onUnpin</code></td>\n        <td valign=\"top\">\n            Callback function to be executed when an element becomes unpinned (reverts to its original state)<br>\n            The callback function receives as argument the element that was unpinned<br><br>\n        </td>\n    </tr>\n    </tbody>\n</table>\n\n## Methods\n\n### `update()`\n\nUpdates the pinned elements' positions in accordance with the scrolled amount and with the pinned elements' container elements (if any).\n\n*Useful if a pinned element's parent changes height.*\n\n```javascript\n// initialize the plugin\nvar zp = new $.Zebra_Pin($('#element'), {\n\n    // element can move only inside\n    // the parent element\n    contain:  true\n\n});\n\n// if the parent element's height changes\n// update also the boundaries\nzp.update();\n```\n\n### `destroy()`\n\nDestroys the plugin and removes the pinning functionality from the elements the plugin was attached to.\n\n```javascript\n// initialize the plugin\nvar zp = new $.Zebra_Pin($('#element'));\n\n// destroy the plugin, removing the functionality from the elements it was associated with\nzp.destroy();\n```\n\n## Sponsors\n\nCross browser/device testing is done with\n\n[![BrowserStack](https://github.com/stefangabos/Zebra_Dialog/raw/master/examples/browserstack.png)](https://www.browserstack.com/)\n","maintainers":[{"name":"stefangabos","email":"contact@stefangabos.ro"}],"time":{"modified":"2024-05-13T08:24:21.181Z","created":"2016-01-26T06:11:40.332Z","1.0.6":"2016-01-26T06:11:40.332Z","1.0.7":"2016-01-26T08:16:09.014Z","1.0.8":"2016-01-26T08:23:54.453Z","1.0.9":"2016-01-26T08:39:34.134Z","1.1.0":"2017-05-26T09:35:27.019Z","1.1.1":"2017-05-26T11:31:49.082Z","1.1.2":"2017-05-30T10:34:10.337Z","2.0.0":"2018-07-23T10:29:45.041Z","3.0.0":"2023-07-09T18:24:59.442Z","3.0.1":"2024-05-13T08:24:21.002Z"},"homepage":"https://github.com/stefangabos/Zebra_Pin","keywords":["pinned-elements","sticky-elements","fixed","pinned","sticky","sticky-sidebar","sticky-header"],"repository":{"type":"git","url":"git+https://github.com/stefangabos/Zebra_Pin.git"},"author":{"name":"Stefan Gabos","email":"contact@stefangabos.ro"},"bugs":{"url":"https://github.com/stefangabos/Zebra_Pin/issues","email":"contact@stefangabos.ro"},"readmeFilename":"README.md","users":{"stefangabos":true},"license":"LGPL-3.0"}