Setting up a slider container with width:100vw
& height:300px
to match the height of the images being used (you can choose your own images) and adding overflow hidden to conceal any images spilling off the screen.
Placing the images inside the logoSlider
using display:flex;
to arrange them in a single line. The logoSlider
is nested within the main parent sliderContainer
.
This is just an illustration, the animation may not be precise as I am presenting the concept for you to customize according to your preference.
Implementing an infinite animation to make the pictures move continuously across the screen.
.sliderContainer {
overflow: hidden;
width: 100vw;
height: 300px;
}
.logoSlider>img {
width: 300px;
height: 300px;
}
.logoSlider {
display: flex;
animation: slideshow 6s infinite linear;
}
@keyframes slideshow {
from {
transform: translate(800px);
}
to {
transform: translate(-1800px);
}
}
<div class="sliderContainer">
<div class="logoSlider">
<img src="https://s3.amazonaws.com/cdn.designcrowd.com/blog/100-Famous-Brand%20Logos-From-The-Most-Valuable-Companies-of-2020/apple-logo.png">
<img src="https://s3.amazonaws.com/cdn.designcrowd.com/blog/100-Famous-Brand%20Logos-From-The-Most-Valuable-Companies-of-2020/google-logo.png">
<img src="https://s3.amazonaws.com/cdn.designcrowd.com/blog/100-Famous-Brand%20Logos-From-The-Most-Valuable-Companies-of-2020/microsoft-logo.png">
<img src="https://s3.amazonaws.com/cdn.designcrowd.com/blog/100-Famous-Brand%20Logos-From-The-Most-Valuable-Companies-of-2020/samsung-logo.png">
<img src="https://s3.amazonaws.com/cdn.designcrowd.com/blog/100-Famous-Brand%20Logos-From-The-Most-Valuable-Companies-of-2020/walt-disney-logo.png">
<img src="https://s3.amazonaws.com/cdn.designcrowd.com/blog/100-Famous-Brand%20Logos-From-The-Most-Valuable-Companies-of-2020/intel-logo.png">
</div>
</div>