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

great design (in addition to the content). How did you make it? I like the right contents column changing topic as I read.



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.




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

Search: