link to id html smooth scroll code example
Example: css smooth scroll to id
<style>
@@keyframes animateright{from{right:-300px;opacity:0} to{right:0;opacity:1}}
</style>
$(document).on('click', 'a[href^="#"]', function (e) {
var id = $(this).attr('href');
var $id = $(id);
if ($id.length === 0) {
return;
}
e.preventDefault();
var pos = $id.offset().top;
$('body, html').animate({ scrollTop: pos });
$('.dataTables_wrapper').css({ 'position': 'unset', 'animation': 'unset' });
$(id).next('.dataTables_wrapper').css({ 'position': 'relative', 'animation': 'animateright 1.5s' })
});