Hacker News new | ask | show | jobs
by koraybalci 5575 days ago
great design (in addition to the content). How did you make it? I like the right contents column changing topic as I read.
1 comments

The position of the articles are stored in an array when the dom is loaded.

When the document scrolls it compares the scroll position to the stored offset positions.

If an article is close enough to the scroll offset it's highlighted.