$("html:not(:animated), body:not(:animated)").animate({scrollTop: $(this).position().top});
$("html:not(:animated)"+( ! $.browser.opera ? ",body:not(:animated)" : "")).animate({scrollTop: $(this).position().top});
Source: https://habr.com/ru/post/65068/
All Articles