How do i achieve slow scrolling effect?

How do i achieve slow scrolling effect?
0

#1

Hello everyone how could i achieve slow scrolling similar to https://codepen.io/freeCodeCamp/full/YqLyXB I am on a challenge no 125. on freecodecamp.


#2

It’s a bit annoying because you have to override the default behaviour and add in a few other little things. I wrote how to here after struggling on finding out how to do it. https://medium.com/@glynlewington/navbar-w-smooth-scrolling-same-page-links-accessibility-cf163b5427e4


#3

Is there any other way except js?


#4

not that I’m aware of, you can always come back to add this in at a later date though.