diff --git a/README.md b/README.md index ee939c9..3cea152 100644 --- a/README.md +++ b/README.md @@ -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 --------------------