ES6 Smooth Scroll Library Example

// Defaults: duration: 400, easing: easeOutQuad
animatedScrollTo(600);

// ...equals to
animatedScrollTo({
    to: 600
});
animatedScrollTo({
    to: 1200,
    easing: easeInOutBack
    duration: 3500
});
// Defaults: to: 0
animatedScrollTo({
    easing: easeInQuint
    duration: 1000
});