Scroll + Animation + Navigation


I am attempting to create a navigation menu that will update the scroll of the browser window and visa-versa. At the moment I am using a setInterval and setTimeout. When using the scroller manually, the page sometimes jumps and the update isn’t pixel perfect because it fires every millisecond. I’m wondering if there is a more elegant way of doing this so both the scroller and animation is updated at the same time. Perhaps a global variable? But I’m not sure.

Thanks, all

Scene attached. (32.8 KB)

I think I understand what you’re trying to do, but I don’t know I have observed any issues. Do you mind posting specific steps to reproduce with the problem you’re encountering? A screen capture using QuickTime Player’s ‘File > New Screen Recording’ might also be good! It’d be useful to know what browser you’re using as well, as that might come into play.