Hacker News new | past | comments | ask | show | jobs | submit login




The first link needs a section on Smooth Scrolling.

Here's an HTML and CSS snippet to implement smooth scrolling:

""

That's it. An empty string. In other words, nothing. It's already implemented in the browser! Wasn't that easy?

Now stop wasting time on an JS-based implementation of smooth scrolling that breaks in at least 1 browser.


These are great - I've bookmarked the 2nd for when I inevitably get asked the question!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: