You're basing your calculation on the horizontal position (left) whereas you actually need to correlate it to the vertical scroll position.    There are a bunch of ways to do this, but it has been asked before in the forums so I just created a new helper function that should make it a lot easier. It's in the docs now too.    I forked your demo, added a list of links in a fixed-position <div> and leveraged this helper function:    /* Returns a FUNCTION that you c
    • Thanks
    • Like
    3