I’ve created a loop but there’s a large blank space between starting the loop again. I’m hoping to get an idea why this is happening from the group. I’ve attached public link
Horizontal logo scrolls are actually a little tricky to solve but there’s a few steps to getting your one working:
-
Set flex child to not grow or shrink on logo-container:
-
Remove any min or max widths from and flex gap from .logo-container
-
Remove margin auto and the 56px margin from .logo-container
-
Set a fixed width for each logo and set left and right padding to add gap’s (I used a width of 13rem with left and right padding of 2rem)
-
Set object-fit contain for the logos
The way this duplicate scroller logic works is by having the second logo list superimposed on the first one’s original starting position as the first ones animation starts again.
Therefore, the logos must be the same length, you must not have any gaps between the two logo lists and you must set flex to no grow or shrink