I am currently creating a scrolling ticker animation for my website.
Here is the HTML code:
<div class="top-news">
<div class="t-n-c">
<div class="textwidget">Latest News: Our first 20 customers get 20% off their first order! Order now with the coupon 20FOR20 to use this offer!
</div>
</div>
</div>
Here is the corresponding CSS code:
.top-news{
<!-- Style properties here -->
}
.top-news > .t-n-c{
<!-- Additional style properties here -->
}
.top-news > .t-n-c > .textwidget{
<!-- More style properties here -->
}
<!-- Animation keyframes and hover effects included -->
After implementing this, I noticed that the text does not fully scroll towards the left on my laptop. While it appears to work correctly on my iPhone due to the smaller screen size, if you view the live demo at: https://codepen.io/anon/pen/RRGvgG you will see the issue on laptops.
The problem seems to be that the animation stops once all the text has scrolled. How can I modify it to continue scrolling even when there is no more text present?