.slider {
    height: 130px;
    position: relative;
    width: 100%;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.slider::before,
.slider::after {
    position: absolute;
    /*background-image: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);*/
    content: '';
    height: 100%;
    width: 25%;
    z-index: 2;
    pointer-events: none;
}

.slider::before {
    left: 0;
    top: 0;
}

.slider::after {
    right: 0;
    top: 0;
    transform: rotateZ(180deg);
}


/*  IMPORTANT CODE BELOW */

.slide-track {
    width: calc(250px * 20);
    display: flex;
    animation: scroll 30s linear infinite;
    justify-content: space-between;
}

.slide-track2 {
    width: calc(250px * 15);
    display: flex;
    animation: scroll2 30s linear infinite;
    justify-content: space-between;
}

.brand-slide {
    width: 90px;
    height: 50px;
    display: grid;
    place-items: center;
    transition: 0.5s;
    cursor: pointer;
}

.brand-slide:hover {
    transform: scale(0.8)
}

@keyframes scroll {
    0% {
        transform: translateX(0px);
    }
    100% {
        transform: translateX(calc(-250px * 10));
    }
}

@keyframes scroll2 {
    0% {
        transform: translateX(0px);
    }
    100% {
        transform: translateX(calc(-250px * 5));
    }
}

@media screen and (max-width: 768px) {
    .slide-track {
        width: calc(150px * 20);
    }
    .slide-track2 {
        width: calc(150px * 15);
    }
    .brand-slide {
        width: 150px;
    }
    @keyframes scroll {
        0% {
            transform: translateX(0px);
        }
        100% {
            transform: translateX(calc(-150px * 10));
        }
    }
    @keyframes scroll2 {
        0% {
            transform: translateX(0px);
        }
        100% {
            transform: translateX(calc(-150px * 5));
        }
    }
}