30 May 2016

With animation

$('html, body').animate({
    scrollTop: offset.top,
    scrollLeft: offset.left
}, 'fast');

Without animation

window.scroll(0,0)