Update README.md
Add the way how to scroll to somewhere.
This commit is contained in:
parent
bd9e96be12
commit
a4bee31597
@ -72,6 +72,12 @@ If you want to destory the scrollbar:
|
||||
$('#Demo').perfectScrollbar('destroy');
|
||||
```
|
||||
|
||||
If you want to scroll to somewhere, just use scroll-top css and update.
|
||||
```javascript
|
||||
$("#Demo").scrollTop(0);
|
||||
$("#Demo").perfectScrollbar('update');
|
||||
```
|
||||
|
||||
Very helpful friends
|
||||
--------------------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user