Skip to content

Commit eab407a

Browse files
author
Ola Holmström
committed
v0.1.0 and publish to npm
1 parent a5dbf26 commit eab407a

File tree

2 files changed

+27
-19
lines changed

2 files changed

+27
-19
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
# scrollparent.js
22

3-
A function to get the scrolling parent of an html element.
3+
> A function to get the scrolling parent of an html element.
44
55
[![browser support](https://ci.testling.com/olahol/scrollparent.js.png)
66
](https://ci.testling.com/olahol/scrollparent.js)
77

8+
## Install
9+
10+
```bash
11+
npm install scrollparent --save
12+
```
13+
814
## Example
915

1016
```js

package.json

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
{
2-
"name": "scrollparent.js"
3-
, "private": true
4-
, "version": "0.0.1"
5-
, "main": "./scrollparent.js"
6-
, "testling": {
7-
"html": "test.html"
8-
, "browsers": [
9-
"ie/9..latest",
10-
"chrome/22..latest",
11-
"firefox/16..latest",
12-
"safari/latest",
13-
"opera/11.0..latest",
14-
"iphone/6",
15-
"ipad/6"
16-
]
17-
}, "scripts": {
18-
"test": "testling . -x 'firefox-trunk'"
19-
}
2+
"name": "scrollparent",
3+
"version": "0.1.0",
4+
"description": "A function to get the scrolling parent of an html element.",
5+
"main": "scrollparent.js",
6+
"repository": {
7+
"type": "git",
8+
"url": "git+https://github.com/olahol/scrollparent.js.git"
9+
},
10+
"keywords": [
11+
"browser",
12+
"scroll",
13+
"scrollparent",
14+
"dom"
15+
],
16+
"author": "Ola Holmström",
17+
"license": "ISC",
18+
"bugs": {
19+
"url": "https://github.com/olahol/scrollparent.js/issues"
20+
},
21+
"homepage": "https://github.com/olahol/scrollparent.js#readme"
2022
}

0 commit comments

Comments
 (0)