Looking for help with setting up a ticker on my website to display headlines from my custom news API. I'm a bit lost on where to start, so any guidance would be appreciated.
Here's the API link - API Link
Is there a simple solution for this? Currently, I'm using a manual ticker and would prefer an automated one.
Here's the CSS code:
.slideText {
display: block;
width: 500px;
height: 30px;
background: red;
color: #fff;
overflow: hidden;
}
.slidingtext {
padding: 5px;
animation-name: example;
animation-duration: 15s;
animation-iteration-count: infinite;
transition: all 300ms ease;
}
@keyframes example {
from {transform: matrix(1, 0, 0, 1, 500, 5)}
to {transform: matrix(1, 0, 0, 1, -344, 5)}
}
and here's the HTML code:
<div class="slideText">
<div class="slidingtext">Lorem ipsum dolor sit amet.</div>
</div>
Any ideas on how to integrate the CSS and HTML for the ticker?