* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f2f2f2;
}

@keyframes slide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

.toy {
    overflow: hidden;
    padding: 60px 0;
    background: white;
    white-space: nowrap;
    position: relative;
}

.toy:before,
.toy:after {
    position: absolute;
    top: 0;
    width: 250px;
    height: 100%;
    content: "";
    z-index: 2;
}

.toy:before {
    left: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0), white);
}

.toy:after {
    right: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), white);
}

.toy:hover .toy-slide {
    animation-play-state: paused;
}

.toy-slide {
    display: inline-block;
    animation: 35s slide infinite linear;
}

.toy-slide img {
    height: 50px;
    /* Set a fixed height for all images */
    width: 50px;
    /* Set a fixed width for all images (for square) */
    /* or width: 80px; for a rectangle */
    object-fit: contain;
    /* This is crucial for making images fit without distortion */
    margin: 0 40px;
    display: inline-block;
    vertical-align: middle;
}