How to implement a smooth anchor in pure(Native) JavaScript?

Hello everyone, I am new to learning JS, but I want him to learn, and it has set itself the task to write a smooth anchor of the navigation to a particular unit, variations on KF know I need native JS
June 14th 19 at 21:03
3 answers
June 14th 19 at 21:05
This feature is under draft and some browsers already have out of the box. Probably you need a smooth scroll polyfill. Of course no one bothers for educational purposes to see its source.
Thanks for the detailed answer - Ian_Mo commented on June 14th 19 at 21:08
June 14th 19 at 21:07
June 14th 19 at 21:09
options on JQ know

So take a scroll on jq and rewrite it in native js.

Find more questions by tags JavaScriptWeb Development