jq-scrollto
v1.0.1
Published
Assigns a scrollTo method to jQuery
Downloads
2
Readme
jq-scrollto
Assigns a scrollTo method to jQuery.
Usage
window.$ = window.jQuery = require('jquery')
require('jq-scrollto')
$.scrollTo('#target')
Functions
$.scrollTo(target, [time], [easing], [callbackFn])
Scroll to the target selector.
| Param | Type | Default | | --- | --- | --- | | target | string | | | [time] | number | function | 1500 | | [easing] | string | function | 'easeInOutCubic' | | [callbackFn] | function | |