{"title":"smoothscroll","name":"smoothscroll-polyfill","version":"0.3.1","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","gulp-rename":"^1.2.2","gulp-uglify":"^1.5.3"},"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":"05f32776b6ab11aec5257741f0041201cf698ee4","_id":"smoothscroll-polyfill@0.3.1","_shasum":"a498ba3604bf24c7e2dc47d2896381e3354a25f5","_from":".","_npmVersion":"3.9.0","_nodeVersion":"4.0.0","_npmUser":{"name":"jeremenichelli","email":"jmenichelli@gmail.com"},"dist":{"shasum":"a498ba3604bf24c7e2dc47d2896381e3354a25f5","tarball":"http://registry-npm.ywwl.com/smoothscroll-polyfill/download/smoothscroll-polyfill-0.3.1.tgz","integrity":"sha512-SIRw8eH4lx9fsBGp3E3wDTrVTcx7xyyzSoYBpb/HYoGqAW9DPefLdSllfd+ORUj0zTjV+V+n1q8uvXE9LO2UqA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7KUgHV9A5czhuyLDgX9HuhmxmAg+spdGpqm7hVRMkDAIhALsv6HDn3DfUI6VyX4g6s0hnAuh8/Zc8TX/c1mRXM3iU"}],"size":9075,"noattachment":false,"key":"/smoothscroll-polyfill/-/smoothscroll-polyfill-0.3.1.tgz"},"maintainers":[{"name":"iamdustan","email":"dustan.kasten@gmail.com"},{"name":"jeremenichelli","email":"jmenichelli@gmail.com"},{"name":"jiyinyiyong","email":"jiyinyiyong@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/smoothscroll-polyfill-0.3.1.tgz_1464665494464_0.8720701681450009"},"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":1464665496676,"_cnpm_publish_time":1464665496676,"dist-tags":{"latest":"0.4.4"}}