Is it possible to implement smooth scrolling to anchors on нативном JS ?
I used to use JQuery
$("a.scrollto").click(function() { var elementClick = $(this).attr("href") var destination = $(elementClick).offset().top; jQuery("html:not(:animated),body:not(:animated)").animate({ scrollTop: destination }, 500); return false; }); But I want to get away from JQuery , thanks in advance!
GOOGLE, the first link forsmooth scroll pure js- Kirill Korushkin