←back to thread

Overengineered Anchor Links

(thirty-five.com)
392 points matser | 1 comments | | HN request time: 0.38s | source
Show context
jer0me ◴[] No.43572494[source]
Another solution I quite like is highlighting the headings of all the sections that are currently on screen.
replies(2): >>43573070 #>>43573235 #
1. technojamin ◴[] No.43573235[source]
This seems like the obvious solution to me. You don't know what the user's eyes are looking at, so making the highlighting a visual representation of what's in the viewport seems preferable than nominating a single section as "current".

In fact the final solution is pretty bad. Sure, it looks nice when I scroll down, but when I use the alternative navigation method of clicking the sidebar items, it just scrolls to unexpected places.

Beautiful article, though.