1.0.2 • Published 7 years ago

scrolling-element v1.0.2

Weekly downloads
1,563
License
MIT
Repository
github
Last release
7 years ago

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