I am new to GSAP and after exploring some basics I wanted to try and implement one of the full page scroll trigger examples, but on a smaller scale. My idea is once the thingsContainer reaches the bottom of the page the scroll trigger will start horizontally scrolling through the images, snapping to each image, so they are displayed as the first image is (with the background of the container visible on all sides)
It is kind of working but there is one issue:
The snap works properly for the first image, then instead of cycling through, it snaps in between the second and third image. Also the first image seems to be slightly higher than the other two.
I'm wondering if the error is happening because of the 1rem spacing between the grid items, and how you would account for this?