Package Exports
- smoothscroll-polyfill
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (smoothscroll-polyfill) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Smooth Scroll behavior polyfill
As an extension of the Window
interface, Scroll Behavior
specification has been introduced to allow the developer wants to scroll to certain part of a site progressively. By this date the standard has only being implemented in Firefox.
Go to the demo site to see it in action https://iamdustan.github.io/smoothscroll
Install
Download the distribution file from this repository and include it in your project.
You can also find it in npm as smoothscroll-polyfill or bower as smoothscroll.
require('smoothscroll-polyfill').polyfill();
Requires requestAnimationFrame polyfill for browsers which don't support it!
Contribute
Fork the repository and run npm install.
After any modification make sure it doesn't break in any of the supported browsers, check linting and build running npm run build and then open a pull request.
Browser Support
Successfully tested in:
- Safari 6+
- iOS Safari 6+
- Chrome (last version)
- natively supported in Firefox
- Internet Explorer 9+
- Microsoft Edge
- Opera Next
If you have tested this and worked as expected in a different browser let us know so we can add it to the list, if not open an issue providing browser, browser version and a good description about it.