Currently, I have a set of 10 icons that are scrolling horizontally from right to left. However, I am encountering an issue where at the end of the icon loop, there is a space causing the icons to jump back to the beginning.
I am looking for a solution to remove this space at the end of the loop so that the slide can seamlessly continue from the first icon without any jumping. Essentially, I need to create a smooth and infinite loop effect.
Can someone assist me in resolving this problem?
.logo{width: 100%;}
.logo_slider {
overflow: hidden;
width: 752px;
margin: auto;
}
.logo_slider {
overflow: hidden;
}
.logo_slider ul {
margin: 0;
padding: 0;
list-style: none;
display: flex;
position: relative;
animation: mymove 10s linear infinite;
}
.logo_slider ul li {
flex-shrink: 0;
flex-grow: 0;
display: block;
border: 1px solid #ccc;
margin: 20px;
width: 80px;
height: 80px;
border-radius: 50%;
}
.logo_slider ul li a img {
width: 100%;
}
/* Safari 4.0 - 8.0 */
@-webkit-keyframes mymove {
0% { left: 0; }
100% { left: -100%; }
}
/* Standard syntax */
@keyframes mymove {
0% { left: 0; }
100% { left: -100%; }
}
<div class="logo">
<div class="logo_slider">
<ul>
<li><a href=""><img src="https://upload.wikimedia.org/wikipedia/commons/a/ab/Android_O_Preview_Logo.png"></a></li>
<li><a href=""><img src="https://upload.wikimedia.org/wikipedia/commons/a/ab/Android_O_Preview_Logo.png"></a></li>
...
...
</ul>
</div>
</div>