Skip to content

Commit

Permalink
1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown committed Mar 24, 2022
1 parent 2b9b87b commit ee0289b
Show file tree
Hide file tree
Showing 17 changed files with 309 additions and 399 deletions.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,8 @@ the main CSS is imported.
<link rel="stylesheet" href="css/perfect-scrollbar.css">
```

Using CommonJS:

```js
const PerfectScrollbar = require('perfect-scrollbar');
```

Using ES Modules or TypeScript:
Import via ES modules:

```js
import PerfectScrollbar from 'perfect-scrollbar';
Expand Down Expand Up @@ -166,6 +161,7 @@ If you want to destroy the scrollbar, use `destroy`.

```js
ps.destroy();
ps = null; // to make sure garbages are collected
```

If you want to scroll to somewhere, just update `scrollTop`.
Expand Down
Loading

0 comments on commit ee0289b

Please sign in to comment.