I am trying to create auto-scroll a list, an exact replica of the list found at the right side of this website, you need to scroll down a bit, i found an answer here but i observe the scroll is not smooth.
any help with this, with purely CSS, would be much appreciated.
My html is below:
<div class="row">
<div class="col">
<div class="card">
<div class="card-header">List of Donors</div>
<ul class="list-group donors">
<li class="list-group-item" *ngFor="let flag of (flags | async)">
<p>{{ flag.name }} {{flag.address}}</p>
</li>
</ul>
</div>
</div>
</div>
Css Code:
.list-group-item {
border-bottom: 1px solid #666;
}
.donors {
-webkit-transition: opacity 0.5s ease-out;
-webkit-animation: autoScrolling 5s linear infinite;
height: 20em;
}
@-webkit-keyframes autoScrolling {
from {
margin-top: 0;
}
to {
margin-top: -20em;
}
}
N:B I am CSS beginner, a working css trick would be appreciated.