{"title":"smoothscroll","name":"smoothscroll-polyfill","version":"0.3.3","author":{"name":"Dustan Kasten","email":"dustan.kasten@gmail.com","url":"https://iamdustan.com"},"contributors":[{"name":"Jeremias Menichelli","email":"jmenichelli@gmail.com","url":"https://jeremenichelli.github.io"}],"devDependencies":{"gulp":"^3.9.1","gulp-concat-util":"^0.5.5","gulp-eslint":"^2.0.0","gulp-load-plugins":"^1.2.4"},"description":"Polyfill for smooth scroll behavior","main":"dist/smoothscroll.js","scripts":{"test":"gulp lint","build":"gulp"},"repository":{"type":"git","url":"git+https://github.com/iamdustan/smoothscroll.git"},"keywords":["smooth","scroll","CSSOM","polyfill"],"copyright":2016,"license":"MIT","bugs":{"url":"https://github.com/iamdustan/smoothscroll/issues"},"homepage":"https://iamdustan.github.io/smoothscroll","gitHead":"81179a62cce8a42f3077f71c483dfc5d3c72bfae","_id":"smoothscroll-polyfill@0.3.3","_shasum":"c1e5a07b9ff3742a39dd21479b6da7a8d62655ee","_from":".","_npmVersion":"3.9.0","_nodeVersion":"4.0.0","_npmUser":{"name":"jeremenichelli","email":"jmenichelli@gmail.com"},"dist":{"shasum":"c1e5a07b9ff3742a39dd21479b6da7a8d62655ee","tarball":"http://registry-npm.ywwl.com/smoothscroll-polyfill/download/smoothscroll-polyfill-0.3.3.tgz","integrity":"sha512-LghqIBJlpEJHBgbwNqNyHB7X26ecqH8sLpab9G4YA/hJQGL+EtI1QMQt4n9/ohrXFRAC2+MyTcbKdTDZ+CwzMA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGNtdwh/1E+nrYSRLFJQrNjpAqskwdUJsdxgQ/2CU0o7AiBW+EeP6ATsm432jSopW/3XgEO9olKPl+GAQJYuxhuPlw=="}],"size":8197,"noattachment":false,"key":"/smoothscroll-polyfill/-/smoothscroll-polyfill-0.3.3.tgz"},"maintainers":[{"name":"iamdustan","email":"dustan.kasten@gmail.com"},{"name":"jeremenichelli","email":"jmenichelli@gmail.com"},{"name":"jiyinyiyong","email":"jiyinyiyong@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/smoothscroll-polyfill-0.3.3.tgz_1465227335341_0.5214619864709675"},"directories":{},"readme":"# Smooth Scroll behavior polyfill\n\nThe [Scroll Behavior specification](https://developer.mozilla.org/en/docs/Web/CSS/scroll-behavior) has been introduced as an extension of the `Window` interface to allow for the developer to opt in to native smooth scrolling. To date this has only been implemented in [_Chrome_, _Firefox_ and _Opera_](https://caniuse.com/#feat=css-scroll-behavior).\n\nCheck out all the methods covered here: https://iamdustan.github.io/smoothscroll\n\n\n## Installation and use\n\nDownload the production ready file [here](https://unpkg.com/smoothscroll-polyfill/dist/smoothscroll.min.js) and include it in your project, or install it as a package.\n\n```sh\n# npm\nnpm install smoothscroll-polyfill --save\n\n# yarn\nyarn add smoothscroll-polyfill\n```\n\nWhen including the polyfill in a script tag, it will run immediately after loaded.\n\nIf you are importing it as a dependency, make sure to call the `polyfill` method:\n\n```js\nimport smoothscroll from 'smoothscroll-polyfill';\n\n// kick off the polyfill!\nsmoothscroll.polyfill();\n```\n\nIn both cases, the script will detect if the spec is natively supported and take action only when necessary.\n\n_The code requires requestAnimationFrame polyfill for browsers which don't support it._\n\n\n### Force polyfill implementation\n\nIf you prefer to always override the native scrolling methods, place this global variable before requiring the module or including the polyfill file.\n\n```js\nwindow.__forceSmoothScrollPolyfill__ = true;\n```\n\n_We strongly recommend not to do this unless your project strongly needs it._\n\n\n## Contribute\n\nThe requirements to contribute are [yarn](https://yarnpkg.com) and the latest LTS [Node.js](https://nodejs.org/en/) version.\n\nFirst, fork the repository and do `yarn install` in the root folder to get all the dependencies to work with. Create a feature branch, write your stuff and run `yarn test` to check code style and prevent bugs.\n\nIn this project we use [Prettier](https://prettier.io) to format the final published code, you can run `yarn format` before committing. If you don't, a precommit hook will prevent you from pushing code that hasn't been formatted properly.\n\nAre you done? Awesome, submit a pull request explaining your changes.\n\n_This is a polyfill, not library, so make sure the behavior you are introducing is in the spec._\n\nOn tests files we are using ES2015, but the polyfill is written in ES5 for browser compatibility.\n\n\n### Watch tests\n\nIf you want to watch tests as you write your code run `yarn test --watch`.\n\n\n## Browser Support\n\nSuccessfully working in:\n\n- _natively supported in Chrome_\n- _natively supported in Firefox_\n- Safari 6+\n- Internet Explorer 9+\n- Microsoft Edge 12+\n- Opera Next\n\n\n## Standards documentation\n\n- http://dev.w3.org/csswg/cssom-view\n- http://lists.w3.org/Archives/Public/www-style/2013Mar/0314.html\n","publish_time":1465227337595,"_cnpm_publish_time":1465227337595,"dist-tags":{"latest":"0.4.4"}}