.user-items-list-carousel__slides-revealer { overflow: hidden; white-space: nowrap; animation: carousel 20s linear infinite; } .user-items-list-carousel__slides-revealer::before, .user-items-list-carousel__slides-revealer::after { content: ""; display: inline-block; width: 100%; } @keyframes carousel { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
i want to create a loop that automatically scrolls