Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,18 @@ To scroll to an element:
$(".nano").nanoScroller({ scrollTo: $('#a_node') });
```

To scroll to an element with animation:

```js
$(".nano").nanoScroller({
animateTo: {
target: $('#a_node'),
duration: Number // Optional,
complete: Function // Optional
}
});
```

#### stop:

To stop the operation. This option will tell the plugin to disable all event bindings and hide the gadget scrollbar from the UI.
Expand Down
52 changes: 40 additions & 12 deletions bin/javascripts/jquery.nanoscroller.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading