1.0.1 • Published 6 years ago
jq-scrollto v1.0.1
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 |