@mvaneijgen Thank you for your response.
You are absolutely right - it is much more productive and useful to write the code yourself, look at what comes out of it, and so on.
But I'm not too advanced in JS programming. I am just learning. This slider example is almost exactly what I need at the moment. I tried to understand its code, but so far it is too complicated for me, so I turned to this forum for help. The only thing that I lack in it is that the slides are shown in full when there are gaps and the last one among visible is not cut off.
I think that if such an adjustment was added to horizontalLoop function, then it would only benefit from this. But that's my personal opinion.
GSAP is just great! I started working with it and am very satisfied. Many thanks to the creators!