Skip to content

olahol/scrollparent.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scrollparent.js

A function to get the scrolling parent of an html element.

browser support

Install

npm install scrollparent --save

Example

Scrollparent(document.getElementById("content")) // window
Scrollparent(document.getElementById("inside-a-scrolling-div")) // HTMLDivElement

License

MIT

About

A function to get the scrolling parent of a html element.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •