mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-06-22 19:00:37 +03:00
Update README.md
This commit is contained in:
@@ -33,7 +33,8 @@ It doesn't work with jQuery slim.
|
|||||||
|
|
||||||
#### HTML
|
#### HTML
|
||||||
|
|
||||||
Include [jQuery](https://jquery.com/) and **OverlayScrollbars** to your HTML file:
|
Include [jQuery](https://jquery.com/) and **OverlayScrollbars** to your HTML file.
|
||||||
|
Load your CSS file(s) before the JS file(s), to prevent unexpected bugs.
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<!-- Plugin CSS -->
|
<!-- Plugin CSS -->
|
||||||
@@ -46,15 +47,13 @@ Include [jQuery](https://jquery.com/) and **OverlayScrollbars** to your HTML fil
|
|||||||
|
|
||||||
#### Javascript
|
#### Javascript
|
||||||
|
|
||||||
Initialize the plugin on the desired element.
|
Initialize the plugin after your document has been fully loaded on the desired element.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
(function($) {
|
$(function() {
|
||||||
|
//The passed argument has to be at least a empty object or a object with your desired options
|
||||||
//The passed argument has to be at least a empty object or a object with your desired options
|
$('body').overlayScrollbars({ });
|
||||||
$('body').overlayScrollbars({ });
|
});
|
||||||
|
|
||||||
})(jQuery);
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Options
|
## Options
|
||||||
|
|||||||
Reference in New Issue
Block a user