Hi,
I know there are countless demos on horizontal scroll, with and without locomotive scroll. I've gone through many over the last two days and adopted the structure to my code but somehow none of them have worked out for me. My progress after these last two days is not massive but I've been stuck for a long time really can't figure out my next steps ?
I've prepared a minimal demo which is hideous but reflects my current status well and hopefully aid in understanding my current pain points.
Goal:
My goal is to create a horizontal scroll section within the website. The section contains 3 items, which should be visible one at a time ie. take up the whole viewport. I would like the each section to snap to the left edge of the viewport (applied blue border-left to make the snapping point clear) and the snapping to happen with a linear ease.
Currently the pinning of the section is working, however when it comes to the snapping, the 2nd Section is always skipped. It always stops at either the 1st or 3rd section. Also, I'm not happy with my solution for the end of the scrollTrigger as it's not really dynamic but any other function that I have tried, just completely broke the pin altogether so I've settled with this for now.
For now I decided that I won't be implementing the scroll with the locomotive library becuause a) I thought it might be overkill when I only want to use the horizontal scrolling b) I couldn't get it to work ://. If however, you suggest that would be the better way, I will give it another try.