scrolling-element
v1.0.2
Published
A polyfill for document.scrollingElement
Downloads
7,355
Maintainers
Readme
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?
Acknowledgements
Thanks to Mathias Bynens for his document.scrollElement, and for allowing me to simplify the polyfill
Liscense
MIT