Skip to content

Commit e4b1d64

Browse files
authored
fix(readme): add unpkg instructions (#218)
1 parent 45e0fd8 commit e4b1d64

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ This used to be a [ponyfill](https://ponyfill.com) for
1818
yarn add scroll-into-view-if-needed
1919
```
2020

21+
The UMD build is also available on [unpkg](https://unpkg.com/scroll-into-view-if-needed/umd/):
22+
23+
```html
24+
<script src="https://unpkg.com/scroll-into-view-if-needed/umd/scroll-into-view-if-needed.min.js"></script>
25+
```
26+
27+
You can find the library on `window.scrollIntoView`.
28+
2129
## Usage
2230

2331
```js

0 commit comments

Comments
 (0)