|Views Total:||3,066 views|
|Official Page:||Go to website|
|Last Update:||June 13, 2016|
How to use it:
element: Specifies the DOM element to scroll to
duration: How long the scroll animation lasts in milliseconds. Default: 0.
easing: Easing type for scroll animation. See below for options Default: linear. (string)
padding: How much space in pixels from the top of the specified element to scroll to. Default: 0
onFinish: Callback function to run when the animation is finished or cancelled.
animateScroll(element, duration, easing, padding, onFinish)
- Target argument can be either element or number