Hey All,
This is my first time plunging into GSAP and boy what a deep pool it is!
I am trying to develop a horizontal scroller that uses drag and scroll interaction. After finding some code online, I hacked together some code to get 80% of the way there.
Im building a next js app but have created the attached example in React as a close comparison. It's an image gallery where each image will be of a different size, so I need a way to dynamically calculate the width perhaps?
My other issue is on resize i'm not sure quite how to get the container to smoothly resize instead of changing after a drag event?
Sometime i also get into a gltichy state when scrolling / dragging to the end. Maybe i have missed something really simple, but i would love some advice on this. https://codesandbox.io/s/eager-chebyshev-9lbjrh?file=/src/App.js
Much Appreciated!
Terry