GeezerVison is showing github.com — GitHub - yangg/scrolling-element: A polyfill for document.scrollingElement
This repository was archived by the owner on Oct 1, 2022. It is now read-only.
Folders and files
| Name | Name | Last commit message | Last commit date |
|---|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
|
Repository files navigation
document.scrollingElement

A polyfill for document.scrollingElement as defined in the CSSDOM specification
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'
Browser compatibility
Thanks to Mathias Bynens for his document.scrollingElement, and for allowing me to simplify the polyfill
MIT
About
A polyfill for document.scrollingElement
Topics
Resources
Stars
16 stars
Watchers
1 watching
Forks