Hi,
Posting here as my issue is somewhat related.
Basically what I want to do is to snap to any specified elements inside the fake horizontal scrolling container.
Here's a demo: https://codepen.io/matias_autio/pen/VwBpdGE
So in this demo, I would want to snap to all the .decades. And there can be a random number of .items between them.
Only thing I can think of is to calculate their relevant positions as percentages compared to the overall width of my ScrollTrigger but it seems rather complex and I was wondering if there is an easier way to do it.