* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
@keyframes slide {
from {
transform: translateX(0);
}
to {
transform: translateX(-100%);
}
}
.logos {
display: inline-block;
position: relative;
padding: 0 0;
white-space: nowrap;
}
.logos:before,
.logos:after {
position: absolute;
top: 0;
width: 250px;
height: 100%;
content: "";
z-index: 2;
}
.logos:before {
left: 0;
background: linear-gradient(to left, rgba(255, 255, 255, 0), white);
}
.logos:after {
right: 0;
background: linear-gradient(to right, rgba(255, 255, 255, 0), white);
}
.logos-slide {
display: inline-block;
/* animation: 40s slide infinite linear; */
transform: translate3d(0,0,0);
animation: marquee ;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-delay: 0s;
animation-duration: 30s;
}
.logos-slide img {
height: 50px;
margin: 0 30px;
max-width: none;
}
@keyframes marquee {
0% {
transform: translate3d(0,0,0);
}
100% {
transform: translate3d(-100%,0,0);
}
}
var slide = document.querySelector(".logos-slide").cloneNode(true);
document.querySelector(".logos").appendChild(slide);
Menu