$('.links').on('click', function(e) {
var $tgt = $(this);
$('html, body')
.stop()
.animate({
'scrollTop': ($tgt.offset().top)
}, 50)
;
});
<アンダブロッブ />
$('.links').on('click', function(e) {
var $tgt = $(this);
$('html, body')
.stop()
.animate({
'scrollTop': ($tgt.offset().top)
}, 50)
;
});