File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 22
33> A function to get the scrolling parent of an html element.
44
5- [ ![ browser support] ( https://ci.testling.com/olahol/scrollparent.js.png )
6- ] ( https://ci.testling.com/olahol/scrollparent.js )
7-
85## Install
96
107``` bash
@@ -14,13 +11,22 @@ npm install scrollparent --save
1411## Example
1512
1613``` js
14+ var Scrollparent = require (" scrollparent" );
15+
1716Scrollparent (document .getElementById (" content" )) // document.body
1817```
1918
2019``` js
20+ var Scrollparent = require (" scrollparent" );
21+
2122Scrollparent (document .getElementById (" inside-a-scrolling-div" )) // HTMLDivElement
2223```
2324
25+ ## Contributors
26+
27+ * Ola Holmström (@olahol )
28+ * Bart Nagel (@tremby )
29+
2430## License
2531
2632MIT
Original file line number Diff line number Diff line change 11{
22 "name" : " scrollparent" ,
3- "version" : " 0.1 .0" ,
3+ "version" : " 1.0 .0" ,
44 "description" : " A function to get the scrolling parent of an html element." ,
55 "main" : " scrollparent.js" ,
66 "repository" : {
You can’t perform that action at this time.
0 commit comments