Hey everyone,
I've been working on a site that shows a side panel which vertical scrolls items automatically (and smoothly). Inspired by this example: https://www.buildinamsterdam.com/
See the codepen attached for my working example. It's a simplified version of what I implemented in the site.
I added a div which Scrolltrigger watches and based on that, it'll set the timeline speed. Also, it watches for scrolling, pausing the animation and starting it again
It's working... but not 100% to my taste, it just feels a bit off. You can scroll faster than the animation. So if you scroll vigorously, it's not really synced with the animation anymore. Also, you can't start with scrolling up as your first action.
Do you have any pointers to improve this? Does this solution make sense at all or is there a way better solution that I didn't think of?