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

Well, you can't have smooth scrolling without hiding parts of the top and bottom lines.

Smooth scrolling means that, at any point in time, the top of the topmost line of the viewport and the bottom of the lowest line of the viewport may be hidden.

Line-by-line scrolling means that all the lines have some kind preserved visibility.

He wants the animation to be smooth, but once you finish scrolling, it should be align itself to the nearest line.

Thanks for clarifying the question.

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