This repository has been archived by the owner. It is now read-only.
A polyfill for CSS scroll snapping
Switch branches/tags
Clone or download
Latest commit 355c294 Nov 2, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo Improve demo and comments Nov 20, 2015
dist Fix body scroll bug on firefox Nov 21, 2015
src Fix default values Jan 30, 2016
vendor/philipwalton Add dependencies Nov 3, 2015
.gitignore Ignore sublime files Nov 4, 2015
LICENSE Add License Nov 20, 2015
README.md Fix link Apr 16, 2016
gulpfile.js Modify gulpfile to include all js files Nov 6, 2015
package.json fix package.json Nov 1, 2016

README.md

scrollsnap-polyfill.js

Polyfill for css scroll snapping draft

Use

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.

Dependencies

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

Limitations

Length units for scroll-snap-point-*: repeat(), scroll-snap-coordinate and scroll-snap-destination are limited to:

  • vh/vw
  • percentages
  • pixels.