I have a flexbox horizontally aligned with 62 items in it. I would like the items to scroll to the left and when complete loop back to the start.
I started trying a lot of things, but since I am new to flexbox I dont think I have a firm enough understanding of its interactions with other content to yet even attempt a solution that may work.
function GetAcceptances(value) {
var acceptances = value;
$("#tempAcceptanceLoader").remove();
for (var x = 0; x < acceptances.length; x++) {
//console.log(acceptances[x].Name);
$("#recentAcceptances").append(`<div class="slidingText">${acceptances[x].Name}</div>`);
}
};
#recentAcceptances {
width: 60%;
background-color: white;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
overflow: hidden;
}
.slidingText {
flex: 1;
padding: 0px 5px 0px 5px;
white-space: nowrap;
color: black;
font-size: 18px;
font-family: 'Oxygen', sans-serif;
animation: example1 20s infinite linear;
}
@keyframes example1 {
0% {
padding-left: 0px;
}
100% {
padding-left: -1000px;
}
}
<div id="recentAcceptances" class="center">
<h4 id="tempAcceptanceLoader">Currently loading the list of acceptances...</h4>
</div>