Polyfill for css scroll snap behaviour
npm install scrollsnap-polyfillPolyfill for css scroll snapping draft
Simply load the bundled file at the end of your body tag.
If you are using the unbundled version, make sure to load polyfill.js first.
This uses Polyfill.js by @philipwalton, which is bundled.
No other dependencies.
Browser Support
---------------
This has been tested successfully in the following browsers:
* Chrome 36
* Firefox 24
Standards documentation
-----------------------
* http://www.w3.org/TR/css-snappoints-1/
* http://blog.gospodarets.com/css-scroll-snap/
Limitations
-----------
Length units for `scroll-snap-point-*: repeat(), scroll-snap-coordinate andscroll-snap-destination` are limited to:
* vh/vw
* percentages
* pixels.