scrolling-element

1.0.2 • Public • Published

document.scrollingElement

A polyfill for document.scrollElement as defined in the CSSDOM specification

Installation

npm install scrolling-element --save

In an HTML document:

<script src="scrolling-element.js"></script>

For Babel and ES2015+, just import the file

import 'scrolling-element'

Which browser need this?

Browser compatibility

Acknowledgements

Thanks to Mathias Bynens for his document.scrollElement, and for allowing me to simplify the polyfill

Liscense

MIT

Package Sidebar

Install

npm i scrolling-element

Weekly Downloads

1,944

Version

1.0.2

License

MIT

Last publish

Collaborators

  • brook