element-scroll-polyfill

A minimal polyfill for Element scroll extensions.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
element-scroll-polyfill
1.0.14 years ago4 years agoMinified + gzip package size for element-scroll-polyfill in KB

Readme

element-scroll-polyfill
npm npm bundle size (minified) A minimal polyfill for Element scroll extensions. Mostly meant for Microsoft IE/Edge. Implements the following methods if not present natively, in compliance with the W3C Editor's Draft (2018-10-24): Does not implement ScrollBehavior, the ScrollToOptions.behavior parameter is ignored.

Install

```sh $ npm install --save element-scroll-polyfill ```

Usage

Pick your favorite: ```js require("element-scroll-polyfill"); ``` ```js import 'element-scroll-polyfill'; ```