Step-by-step guide to create an infinite scrolling logo carousel using CSS animations. Responsive design included. Copy-paste code ready.
Here is a quick and easy way to make popular infinite logo carousel:
Structure you should make:
Code you should put inside styles somewhere (either head code, global, or HTML embed). Same is appliable for bare HTML and CSS:
.trusted-by-logo-w {
animation: scroll infinite 40s linear;
}
@keyframes scroll {
from {
transform: translateX(0);
}
to {
transform: translateX(calc(-100% - 6.5rem));
}
}
@keyframes scrollMobile {
from {
transform: translateX(0);
}
to {
transform: translateX(calc(-100% - 3.5rem));
}
}
@media (max-width:991px) {
.trusted-by-logo-w {
animation: scrollMobile infinite 40s linear;
}
}
Important notes to watch out on: