I am the developer of the website www.tedxguc.com.
I think you're already on the right track (pun intended) regarding how I got the animation to work with scrolling. I just conceptualized the animation as if the scroll bar was the search bar in the video player.
So, I set the page height to the length of my animation, so that every 1 pixel my element moves 1 ms in the animation, as if I were moving in the timeline.
At the end of the homepage.js file, you will see the animation setup code.
In makeAnim () you will find a lot of code that looks like this:
setAnim(obj.apple,{0:{along:0}, 1000:{along:1}}, start+3200, 1000);
This basically means: configure the apple so that it moves from it 0 (beginning of the path) to 1 (end of the path), and it will do this within 1000 pixels of scrolling starting from the "beginning" of the animation + an offset of 3200 pixels.
I cheated a little and slightly corrected the code to make it easier to understand.
Here's the jsfiddle of the previous development concept, and I hope my comment helped.
source share