{"_id":"@aredridel/css-scroll-snap-polyfill","_rev":"2-4fd6e0fd6e9f4715f776be11303366c9","name":"@aredridel/css-scroll-snap-polyfill","dist-tags":{"latest":"1.0.0"},"versions":{"0.1.3-modern-detection.0":{"name":"@aredridel/css-scroll-snap-polyfill","version":"0.1.3-modern-detection.0","main":"dist/css-scroll-snap-polyfill.cjs.js","module":"dist/css-scroll-snap-polyfill.esm.js","browser":"dist/css-scroll-snap-polyfill.umd.js","dependencies":{"polyfill":"^0.1.0"},"devDependencies":{"babel-cli":"^6.26.0","babel-plugin-external-helpers":"^6.22.0","babel-preset-env":"^1.6.1","eslint":"^4.13.1","eslint-config-standard":"^11.0.0-beta.0","eslint-plugin-import":"^2.8.0","eslint-plugin-node":"^5.2.1","eslint-plugin-promise":"^3.6.0","eslint-plugin-standard":"^3.0.1","rimraf":"^2.6.2","rollup":"^0.50.0","rollup-plugin-babel":"^3.0.3","rollup-plugin-commonjs":"^8.2.6","rollup-plugin-filesize":"^1.5.0","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-uglify":"^2.0.1"},"scripts":{"prepublish":"npm run build","build":"rimraf ./dist && rollup -c","dev":"rollup -c -w","lint":"eslint ."},"files":["dist"],"gitHead":"864c97d132888bc4a3f10214c278efa86bc5d727","description":"Polyfill for CSS scroll snapping draft.","_id":"@aredridel/css-scroll-snap-polyfill@0.1.3-modern-detection.0","_npmVersion":"6.1.0","_nodeVersion":"10.0.0","_npmUser":{"name":"aredridel","email":"aredridel@dinhe.net"},"dist":{"integrity":"sha512-DxoSxa/cIOr5qcOO8XsdtOFcwC4ViFxME83ECmJ5Lyr7WsIvNoNQOUkn7Rx6cUluj7PzBy2A9X44UJPdC8Gjew==","shasum":"5a268e2d70598727f7b6f7f5ff4f60dfc61f637f","tarball":"https://registry.npmjs.org/@aredridel/css-scroll-snap-polyfill/-/css-scroll-snap-polyfill-0.1.3-modern-detection.0.tgz","fileCount":7,"unpackedSize":138866,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbIAzKCRA9TVsSAnZWagAADKAQAKUADbdWoLtT7m9s+rDW\n4Sr6PKLc4UFU9ifErjog2o8YFzmhsY4lr2dtNyvm2Dg/0dG3URP8dmM4+mGF\ncYWr2HoRqOeCXU0j4LiNZDDZV5vawSSh1toTt3DHIqZIBg+dJe3hv+87OTzc\n23vLtO6A3+S6gw0/AhM//IYcbBhYCzsIaeRsj8+Q08VEcF2Fmrrp9ypAtiHU\nXuCmW8VW7zpnfaq1+vjfEurmDvb1AnFYNhVfa4Q0jaPiwLCS/Lb5AOtn4jID\nfr8OK4U9Sr6woQiLvJL8x3p7MzeGRjC1TvvCj2Q8/+A/qA4SMF2h4cuZuZs/\nPU4XuQPoDaIdnxeShnpE8D6qmMqaYbzeb+Sj3D53ygT8BlP3lMsVEsn1Dz0V\nUk4PLgTxxK+bZtklhpqVrNXkmJ/lZoPi+qC0OTiXqdgtiKJ4FtvANlKQ92sQ\nuJOGHatDFnC20EcC7o7ldWIQvnsGik/ClUAB6e7ek5UL5RNQRYm321dsiEER\ngPOYtIvLW4kjnnGm5Pt5rmdbnKdvFKZlCxWXJ+pEYLUU/e/b3/bll9NGp8ZK\ns/kczoqXGLmHyN8kRiwrph1Z4siXSQiY2YrmMJewVwyoySaVXBGHogBMEz0R\np8pnSzE5iuvLG4jecDzMa2ypISxkMnarUOJHy/SELJV0YjnJ+gRVlocJnhv+\nkNF3\r\n=bykM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/F+8+8tCxzsJAaFIvtSfxzSayUJJayM5D7PJ9RGXCpgIgejVw3vHqkMB8zqDT3SdoOXWec/U+8gJyGNiUprwBv9U="}]},"maintainers":[{"name":"aredridel","email":"aredridel@dinhe.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-scroll-snap-polyfill_0.1.3-modern-detection.0_1528827081672_0.6527512636173161"},"_hasShrinkwrap":false},"1.0.0":{"name":"@aredridel/css-scroll-snap-polyfill","version":"1.0.0","main":"dist/css-scroll-snap-polyfill.esm.js","dependencies":{"polyfill":"^0.1.0"},"devDependencies":{"babel-cli":"^6.26.0","babel-plugin-external-helpers":"^6.22.0","babel-preset-env":"^1.6.1","eslint":"^4.13.1","eslint-config-standard":"^11.0.0-beta.0","eslint-plugin-import":"^2.8.0","eslint-plugin-node":"^5.2.1","eslint-plugin-promise":"^3.6.0","eslint-plugin-standard":"^3.0.1","rimraf":"^2.6.2","rollup":"^0.50.0","rollup-plugin-babel":"^3.0.3","rollup-plugin-commonjs":"^8.2.6","rollup-plugin-filesize":"^1.5.0","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-uglify":"^2.0.1"},"scripts":{"prepublish":"npm run build","build":"rimraf ./dist && rollup -c","dev":"rollup -c -w","lint":"eslint ."},"gitHead":"c843f9c537ba0e07eb9d9c609196106baaf0f037","description":"Polyfill for CSS scroll snapping draft.","_id":"@aredridel/css-scroll-snap-polyfill@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"aredridel","email":"aredridel@dinhe.net"},"dist":{"integrity":"sha512-52Ca7zapqASpa1iHn0mOpaah3+8xePol8SIuWvs887epg6fKAzVW2jOscCEeywELwHUzikREOkjRY4gmqwEd8A==","shasum":"a32e0dd9237a2674cbc1f01ddab0d5909628c7e4","tarball":"https://registry.npmjs.org/@aredridel/css-scroll-snap-polyfill/-/css-scroll-snap-polyfill-1.0.0.tgz","fileCount":4,"unpackedSize":35960,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb4I3FCRA9TVsSAnZWagAAChgQAIp0piQSpBLvlwc2DNJz\nUKm3cLGk2c5lwxr/2N0o7cy66yPKEiyepbQXVNBeDHGBQRUyPEt1GUp5ZWTV\nnpl1Xc+n+/cBcA7T6nxCupHNlCdLNla52DCIRaRUQNrYQFiyIe72ZSBBero8\n/yxQTbufFHqMwafC12kaE4aLeqkVWNW0BxDn1BlkRc6FclsD0xg/DTMUqkd5\nBYVd5Un85H8tLQV+Dg4/BtCmGIxiUca6A1B/TIbkzqd5OtjWH9MJGwPM8SDm\nMBmNzTDuAyo4pKQ0bnWM/0/rmJ7WAK6cYgwnYt00AxFchTBv5FnwhPE+29mN\nHatRNHRfmH6bKeJnkzqC+5e6pZGRvtAJAmHzq10WgUPR6ttmcfHdhDHSllP4\ngbm188zT/4HNRzut2+Gcutl++EdTHFaujAUwcboMwCS5U+cMqxVtVjEE8JCv\nEp3OQ0RZHQLQC1KKSdV18zYADcDnCe90sUbkvO6OSF4OsbUCsS9XQfkBffys\n1Trw88mSZQATdkru+jJlmJMiRjUGzxhJMIWBUDFKqXiUMju+FfRU5uWmsjlu\n6miLuoXGAW1UpTeBXLDW8sVe++Mhsp8F4y+Xo1a7ag7UjKtf4pkpbnqzY9pz\n33nFl3DkJ7+zwGb8ukQczF9XyLXOhfan9fqSp+x41aYvu6k4AOj56SCr0nGQ\n7T7S\r\n=nVy5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDw0EBEBrmDSSqokVFL+Z9OG2E0Mx80+/98hIwQrI98CAiA9tNUDYedP3hMLzfGFaTM5nm3mem96QrPLZ7OMdsXz5A=="}]},"maintainers":[{"name":"aredridel","email":"aredridel@dinhe.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-scroll-snap-polyfill_1.0.0_1541443012913_0.2730044110315091"},"_hasShrinkwrap":false}},"time":{"created":"2018-06-12T18:11:21.418Z","0.1.3-modern-detection.0":"2018-06-12T18:11:21.963Z","modified":"2022-04-04T15:22:56.841Z","1.0.0":"2018-11-05T18:36:53.023Z"},"maintainers":[{"name":"aredridel","email":"aredridel@dinhe.net"}],"description":"Polyfill for CSS scroll snapping draft.","readme":"# css-scroll-snap-polyfill\n\nPolyfill for CSS scroll snapping draft.\n\n## Usage\n\n#### Yarn\n`yarn add css-scroll-snap-polyfill`\n\n#### NPM\n`npm install --save css-scroll-snap-polyfill`\n\nCode example:\n\n```js\nimport scrollSnapPolyfill from 'css-scroll-snap-polyfill'\n\n// whenever dom is ready\nscrollSnapPolyfill()\n```\n\nUsage with React:\n\n```js\n// must use inside componentDidMount so that the DOM is ready\ncomponentDidMount() {\n  scrollSnapPolyfill()\n}\n```\n\n\n\n## Dependencies\n\nThis uses [Polyfill.js](https://github.com/philipwalton/polyfill) by [@philipwalton](https://github.com/philipwalton), which is bundled.\nNo other dependencies.\n\n\nBrowser Support\n---------------\n\nThis has been tested successfully in the following browsers:\n\n* Chrome 63\n* Firefox 57\n* Safari 11\n\n\nStandards documentation\n-----------------------\n\n* https://www.w3.org/TR/css-scroll-snap-1/\n\n\nLimitations\n-----------\n\nIt will not work properly when you use margins on the scroll-snap container or\nit's children due to there being a mismatch between the parent and child offsets,\nwhich are used to make calculations.\n\nThis polyfill only supports the properties in the new spec, not the older deprecated\nproperties like `scoll-snap-points`, `scroll-snap-coordinate`, and `scroll-snap-destination`.\nIf you want to use those older properties (not recommended) you can use  [scrollsnap-polyfill](https://github.com/ckrack/scrollsnap-polyfill) from Github user [@ckrack](https://github.com/ckrack).\n\nLength units for `scroll-padding` are limited to:\n\n* vh/vw\n* percentages\n* pixels\n\nRoadmap\n-------\n\n- Code clean up\n- Testing\n- 100% parity with spec\n\n## License\n\n[MIT](LICENSE).\n","readmeFilename":"README.md"}