I coded a horizontal scroll view. It looks something like this: https://miro.medium.com/max/7000/1*oWL3jUPkbfGtcpvS1u_Y-w.png.
We say: We have 7 containers in the scroll view. Now I need a function that scrolls automatically to a specific container. Let's say to container 3. I already looked it up many times, but I can't find a vanilla JavaScript function which works really smooth. Hope someone knows a good solution.
Thanks ~Marcus