{"_id":"@autots/sticky","_rev":"11-66c874515766cefb31f658b179395d41","name":"@autots/sticky","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"@autots/sticky","version":"0.0.1","description":"a sticky lib to simulate stickily positioned element","main":"dist/sticky.js","browser":"dist/sticky.js","types":"lib/sticky.d.ts","dependencies":{},"devDependencies":{"@typescript-eslint/eslint-plugin":"^2.0.0","@typescript-eslint/parser":"^1.13.0","clean-webpack-plugin":"^3.0.0","eslint":"^6.1.0","eslint-config-standard":"^13.0.1","eslint-plugin-import":"^2.18.2","eslint-plugin-node":"^9.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.0","html-webpack-plugin":"^3.2.0","jest":"^24.9.0","ts-jest":"^24.0.2","ts-loader":"^6.0.4","typescript":"^3.5.3","webpack":"^4.39.3","webpack-cli":"^3.3.7","webpack-dev-server":"^3.8.0","webpack-merge":"^4.2.1","webpack-node-externals":"^1.7.2"},"scripts":{"dev":"webpack-dev-server --mode=development --config ./build/webpack.config.js --open","build:umd":"webpack --mode=production --config ./build/webpack.config.js","build:es6":"tsc --target es6 --moduleResolution node -d","release":"npm run build:umd && npm run build:es6","lint":"eslint src --ext .ts","test":"test"},"keywords":["sticky","scroll"],"author":{"name":"Magn Mah"},"homepage":"","license":"MIT","gitHead":"4baf16d1f8b731aaf585087b66c7c9e52c282b82","_id":"@autots/sticky@0.0.1","_nodeVersion":"10.16.0","_npmVersion":"6.10.2","dist":{"integrity":"sha512-dVE0YFsO7W7KKiB5wKo9Ba/fgisAoo2AQX07MTag/bzl+DbyxlRbOQ0PKK47VMQWBy6A2RlCEQr9AAeU9eOSMg==","shasum":"c41f40c90de9e689fc977f4289b03103b716b285","tarball":"https://registry.npmjs.org/@autots/sticky/-/sticky-0.0.1.tgz","fileCount":9,"unpackedSize":108565,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdbzt+CRA9TVsSAnZWagAAfcQQAId2FhI/Z8KxrgMZ0vFI\nndEJM7VlVoZ2+FaOqAolMQa/PPoCXPd9522engLRL2rfu5Ay0qNq/5YMQ7b8\nq0EUZPFgs5Rv/Qt8GYYDa7VTP5KLefruY9o8sovgE3PxNmYUb0a0sybwx+P2\n/NQFIm9mfoJRvu4jXZ8n65ER/90wUC8Pb0D/nRT6yhbdwma/CsvtOWU+dMGC\n58J+Fa++JVTDBHdqjADoRe6h+U0em6omcx51+NTBV7esWa7eBMoXL6sTelQk\nRV/m5obUQ3nvx76Hw17xGWKqEIhjmu57ezWEfPStuWUQ/Mt8+LlIptlGVJFV\ntvTCADwptdJ+9/+urIdGFxHiz7wFFwZRDBrzW1uE92aZWxyv9PNRgqjyaQoT\nHwP2TuTfVkPycMdRZomuBfFMbxcjFl/wC4Wn4gVTghX7ExvishczqCrGmAY1\nTeBgiCHABdTAyW6TAO4ZS5VXB4b7YCjn9uV8y20otqVR5oGuPPTAGBPGtO5z\nCJWaHYzGCOZBbQRvJMj25V5gNaZz6/4ttEeYOilN/DeLuorrJDfS0Jd/UXYV\nCd0Ju69GnjXB0cpwMOFc5ra36++ZN5mtp2P3L4Mqzo6XlUBvFCfoHuHMkqJB\nbvpf9bMWWUcmKPxZESbASr3p0yBL758eZZ7upu7llClVGIyVFE0cy/01XIUM\npWVI\r\n=l8uX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAtbvxIcRD/JuWljZYD3BAx6Z5zHpXB56BAYf9d4g2WyAiADtZjCxOL+atZain9q1JW4RArxAMiWeoYVu4o5lJ3jEA=="}]},"maintainers":[{"name":"autots","email":"majiadong@autohome.com.cn"}],"_npmUser":{"name":"autots","email":"majiadong@autohome.com.cn"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sticky_0.0.1_1567570813751_0.1614847479658692"},"_hasShrinkwrap":false},"0.0.2":{"name":"@autots/sticky","version":"0.0.2","description":"a sticky lib to simulate stickily positioned element","main":"dist/sticky.js","browser":"dist/sticky.js","types":"lib/sticky.d.ts","dependencies":{},"devDependencies":{"@typescript-eslint/eslint-plugin":"^2.0.0","@typescript-eslint/parser":"^1.13.0","clean-webpack-plugin":"^3.0.0","eslint":"^6.1.0","eslint-config-standard":"^13.0.1","eslint-plugin-import":"^2.18.2","eslint-plugin-node":"^9.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.0","html-webpack-plugin":"^3.2.0","jest":"^24.9.0","ts-jest":"^24.0.2","ts-loader":"^6.0.4","typescript":"^3.5.3","webpack":"^4.39.3","webpack-cli":"^3.3.7","webpack-dev-server":"^3.8.0","webpack-merge":"^4.2.1","webpack-node-externals":"^1.7.2"},"scripts":{"dev":"webpack-dev-server --mode=development --config ./build/webpack.config.js --open","build:umd":"webpack --mode=production --config ./build/webpack.config.js","build:es6":"tsc --target es6 --moduleResolution node -d","release":"npm run build:umd && npm run build:es6","lint":"eslint src --ext .ts","test":"test"},"keywords":["sticky","scroll"],"author":{"name":"Magn Mah"},"homepage":"https://github.com/magnnus/sticky","repository":{"type":"git","url":"git+https://github.com/magnnus/sticky.git"},"bugs":{"url":"https://github.com/magnnus/sticky/issues"},"license":"MIT","gitHead":"8bb25d8d47d8298341109f2fad4b5d4ed8fa310b","_id":"@autots/sticky@0.0.2","_nodeVersion":"10.16.0","_npmVersion":"6.10.2","dist":{"integrity":"sha512-tkRanJ0HVW7de7lkWa6SGd+MZHbX9ySEyS1NmsMnocwc0fYCj1vpPAY/L7IZ5y13W0k06olzWum1L7BPS458Wg==","shasum":"e4afefd5ab3eaaf4d72b7c600f63ccdcd1c12b5d","tarball":"https://registry.npmjs.org/@autots/sticky/-/sticky-0.0.2.tgz","fileCount":9,"unpackedSize":115178,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdcG8hCRA9TVsSAnZWagAAFEMP/ROGQ3xW9DD/T6z9G592\ntBF8nKoxjaq7baB4YALyPdn6Z6FnrFe3UvV5oC/abQlDeAfMYh6mZ0AP4+lb\nC0xgQ6wuZzWe7WO+IX/xV4p2SuibS7+1XXFjWqITCJ6ndZ0OZhBmHk0e5clx\n97snMPEuEkqhfjdzd00HbkotROKPOrWsQieYTz3cBK62GXKP1a0ehIjQkPq8\n57hK5Iax9aNjRVeDjzLCeLbYNZgG5B6hkKnDHz7fm+jRGzinXD1aRLXqToZ1\nUeCDLKnHJdMnCJwEb7im05tX91LMLV7G0GsFTL1RSJC7yW73SkdYvM0v3fU6\nhdXTFXNV07QdqWfx9houkjp6J1Ay/F//tJf9iy8aBVwP4NxfU4xKoL/TbrdO\npqc/xX6cJsuPxrjS5CmOGzafhVXFTrfJ2J0izs30jnxktMDcFwGAVn8nnSDo\nMHZFZ/ZKeUk6zcnBIrcwHPhpwrlu9OocJ6L/f5DwTy8VGCJjedqQQ6aSzJ8m\nzXE0HR40VRs/7Wz2pLzvVJPGbs0CdaFaycyCarnaRKGgj9VbDiCblddJ7hEy\n2IEEf+eoyn/hWE+lvXkzExXA0z99LNvJcta0aeI3YwyAxBpcn9L7zLDa59vo\nb5gFedk4NffdqNOYseJhktaJE+VvREjt/2nIMydf1jfGep5/lA14RFppoI09\nWKpS\r\n=SjpY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCNX5Ckey1RWOegkj7FylSUK6gV7ho8aAuATq4DNh8b3wIhAKckHnGE4AmPFUBJSokvWhIkC9PxN2noNetrR+6Rgftk"}]},"maintainers":[{"name":"autots","email":"majiadong@autohome.com.cn"}],"_npmUser":{"name":"autots","email":"majiadong@autohome.com.cn"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sticky_0.0.2_1567649569245_0.16519254786853388"},"_hasShrinkwrap":false},"0.0.3":{"name":"@autots/sticky","version":"0.0.3","description":"a sticky lib to simulate stickily positioned element","main":"dist/sticky.js","browser":"dist/sticky.js","types":"lib/sticky.d.ts","dependencies":{},"devDependencies":{"@typescript-eslint/eslint-plugin":"^2.0.0","@typescript-eslint/parser":"^1.13.0","clean-webpack-plugin":"^3.0.0","eslint":"^6.1.0","eslint-config-standard":"^13.0.1","eslint-plugin-import":"^2.18.2","eslint-plugin-node":"^9.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.0","html-webpack-plugin":"^3.2.0","jest":"^24.9.0","ts-jest":"^24.0.2","ts-loader":"^6.0.4","typescript":"^3.5.3","webpack":"^4.39.3","webpack-cli":"^3.3.7","webpack-dev-server":"^3.8.0","webpack-merge":"^4.2.1","webpack-node-externals":"^1.7.2"},"scripts":{"dev":"webpack-dev-server --mode=development --config ./build/webpack.config.js --open","build:umd":"webpack --mode=production --config ./build/webpack.config.js","build:es6":"tsc --target es6 --moduleResolution node -d","release":"npm run build:umd && npm run build:es6","lint":"eslint src --ext .ts","test":"test"},"keywords":["sticky","scroll"],"author":{"name":"Magn Mah"},"homepage":"https://github.com/magnnus/sticky","repository":{"type":"git","url":"git+https://github.com/magnnus/sticky.git"},"bugs":{"url":"https://github.com/magnnus/sticky/issues"},"license":"MIT","gitHead":"1e9c01b7b8d6acb94cc18e9b3ac86ded2ba33de3","_id":"@autots/sticky@0.0.3","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-c8/hsv5/A/PWLj/j51k+DXZl6fX9VZ8PQlAbHTWeO3muZwaRfUPfoXH+8j9Xe0BGjCunzTGmbKzAoyKCCHP5dw==","shasum":"d6761875bf5bf857a995f50c4c28c48b8a466904","tarball":"https://registry.npmjs.org/@autots/sticky/-/sticky-0.0.3.tgz","fileCount":7,"unpackedSize":44595,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqnNVCRA9TVsSAnZWagAANw8P/RtOGz0TdfP/ndBkwddK\nPXyMnq3QJiOJEl6JQY9mLphS5Skd3+8A8cUYIoWNsRLASFu8tEiuJdAjeq+9\ncuMat0bENr8ORCMIe3JG0KHGfMCh/BY7lqK7cA6pzg++jsvPYe9r7Si5SHHO\nLrCxysHWYPu0tN1YIziHaLQsufiZzJ1nN/4F5xxhsXDE45D3G5V8l0O9PUTL\nqFIIujna8fwq2XfojjVt3MNWTxEo0Qm+mZS0wHaUvDifMFzLzeTUIcWPyq/B\nEtWmR+wgXOX+Bpn2o1HlpXzwlYUWqo9Xz/tVRp5VcUVHdpPWCvzeyJtLg8VP\nvz1WMJ+SmMq9A7lJmdC2NoFtBwFa4OCKSEWSUGGuvroc/rSvu9Wlm2bMi9QX\nDopL0nMS6MxZd8cFU981xj8U6MWCGudlB2wRNrsEU9JKKuLwCaQHj/igscZe\nKB0RnbhVURxOpv+HUQpwY7hgXDWB21Rt6f64CCxR5Xr1tXKKB8RRgBFLi4pV\ns0a7ZeSnigykJMRX9VdsptE0klfkyPZATOFsNDAOn7GhBPiOEDf5vBflxU7O\nqSxYccUka/gdb4/21YcxUuJLvE4+t5lwk3Y+VNrMETELkA6yr4b0q7le5b87\nUQZxNDuSkWryzy66BK+vBRnjj3mlwUdZQaAw3MzQkaKTf40scepdmwTMTn7l\nejrB\r\n=n+JL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGmvOIRzDCD/moGB1OjPcnvU+HrLSD6VWMrqFiwbUQbYAiEA7sqdRY1yfXwgx3TRBiHyuQtzePHf63dr7hQY5C3IyLs="}]},"maintainers":[{"name":"autots","email":"majiadong@autohome.com.cn"}],"_npmUser":{"name":"autots","email":"majiadong@autohome.com.cn"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sticky_0.0.3_1588228948897_0.7973579395014387"},"_hasShrinkwrap":false}},"time":{"created":"2019-09-04T04:20:13.522Z","0.0.1":"2019-09-04T04:20:13.895Z","modified":"2022-04-04T16:40:53.334Z","0.0.2":"2019-09-05T02:12:49.441Z","0.0.3":"2020-04-30T06:42:29.008Z"},"maintainers":[{"email":"hylurk@163.com","name":"hylurk"},{"email":"759679382@qq.com","name":"elenino_m"},{"email":"519184378@qq.com","name":"wukong16"},{"email":"kabulore@163.com","name":"jeff_yang"},{"email":"magicmarry@126.com","name":"magnnus"},{"email":"liihom0925@gmail.com","name":"liihom"},{"email":"shaeyeux@gmail.com","name":"sharklegs"},{"email":"magnnus1215@gmail.com","name":"atser"}],"description":"a sticky lib to simulate stickily positioned element","keywords":["sticky","scroll"],"author":{"name":"Magn Mah"},"license":"MIT","readme":"# sticky\n\na sticky lib to simulate stickily positioned element.\n\n## Features\n\n+ typescript features & vanilla js  \n+ use CSS `sticky` firstly  \n+ support ie9+\n+ only support sticky `top`\n\n## Installing\n\nUsing npm:\n\n```\n$ npm install @autots/sticky -S\n```\n\nUsing yarn:\n\n```\n$ yarn add @autots/sticky\n```\n\n## Example\n\n### layouts\n\n```\n<section id=\"demo\">\n  <div class=\"child\"></div>\n</section>\n```\n\n**Note:** When the host browser doesn't support css `position: sticky`, the lib will fall back to use `scroll` event on window object, and set some css properties to his fisrtElementChild.\n\n### import as a module\n\n```\nimport Sticky from '@autots/sticky';\n\n// 1. The simplest way\nnew Sticky('#demo');\n\n// 2. use config\nnew Sticky('#demo', {\n  top: 10,\n  zIndex: 100\n})\n```\n\n### import as a lib\n\n```\n<script src=\"dist/sticky.min.js\"></script>\n\n<script>\n  var stickyDemo = new AutoTs.Sticky(el, config);\n</script>\n```\n\n## Config\n\n| Name | Type | Default | Optional | Description |\n|:-----------:|:---------------:|:----------:|:-------:|:-----------------------|\n| mode | 'sticky' or 'affix' | 'sticky' | true | normal `affix`（fixed） mode or  new `sticky` feature ｜\n| scrollRefer | string \\| HTMLElement \\| Document \\| Window | window | true | scroll container |\n| offsetParent | string | null | true | offset parent el ｜\n| top | number | 0 | true | CSS top (`px`) property |\n| style | object | {} | true | CSS property |\n| holderStyle | object | {} | true | CSS property for the Target Placeholder Element |\n| throttle | boolean | false | true | throttle feature when use scroll event(assigned when encounter special cases) |\n\n`scrollRefer` & `offsetParent` must have a `non-static` position.\n\n## Todo\n\n+ support config `direction`  ","readmeFilename":"README.md","homepage":"https://github.com/magnnus/sticky","repository":{"type":"git","url":"git+https://github.com/magnnus/sticky.git"},"bugs":{"url":"https://github.com/magnnus/sticky/issues"}}