This repo is forked from iamdustan/smoothscroll and rewritten with TypeScript.
Installation and use
# npm npm install seamless-scroll-polyfill --save # yarn yarn add seamless-scroll-polyfill
Use polyfill to patch all methods
; ;
Use specific polyfill
; ;
Use methods directly without patching
; ;
Import via script
Auto polyfill via script
Generated files structure
dir | dist/esm | dist/umd | dist/es6 | dist/cjs | dist/es5 |
---|---|---|---|---|---|
module format | ES Modules | UMD | UMD | CJS | UMD |
ES version | ESNext | ESNext | ES2015 | ES2015 | ES5 |