mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-06-15 02:22:27 +03:00
improve readme and website
This commit is contained in:
@@ -50,7 +50,7 @@ import { OverlayScrollbars } from 'overlayscrollbars';
|
||||
|
||||
<details>
|
||||
<summary>
|
||||
These instructions are for old stacks. Click here to read them.
|
||||
These instructions are for quick prototyping or old stacks. Click here to read them.
|
||||
</summary>
|
||||
<br />
|
||||
|
||||
@@ -66,6 +66,12 @@ Embedd OverlayScrollbars manually in your HTML:
|
||||
<link type="text/css" href="path/to/overlayscrollbars.css" rel="stylesheet" />
|
||||
<script type="text/javascript" src="path/to/overlayscrollbars.js" defer></script>
|
||||
```
|
||||
|
||||
You can use the global variable `OverlayScrollbarsGlobal` to access the api:
|
||||
```js
|
||||
var OverlayScrollbars = OverlayScrollbarsGlobal.OverlayScrollbars;
|
||||
OverlayScrollbars(document.body, {});
|
||||
```
|
||||
</details>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user