
You could perform the entire linking and scrolling operation in JavaScript, but I think that’s a bad idea simply because you’re unnecessarily limiting the number of people that can use your site to those with JavaScript turned on. What if we want to make this a more gradual effect so the user can plainly see that the page is scrolling down?

There’s no animation at all, the page just jumps right to the anchor upon clicking.

With HTML, anchor linking works, but the transition is pretty harsh.
