There is the method scrollIntoView which is compatible with all modern browser
document.getElementById("scrollhere").scrollIntoView(
{behaviour:'smooth',
block:'start'
);
So there is no need to still use this jQuery snippet:
$('html,body').animate({
scrollTop: $("#scrollhere").offset().top
},'slow');
Behaviour works also with scrollTo.
