Vanilla JS plugin for animated scrolling
scrollHelper.scrollTo(target,duration[,options]);
Target DOM element (destination of scrolling)
Duration of the scroll animation (ms)
- container: Scrollable DOM element for nested scrolling
- onAfter: A callback triggered when the animation ends