diff --git a/web/src/App.tsx b/web/src/App.tsx index 608739e..22a4834 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -2658,7 +2658,14 @@ function NewsTicker() {
{t("news.label")}
-
+ {/* Duration from the distance travelled (track + text), so the speed is + the same ~60 px/s on every screen width. */} +
{ + if (el) el.style.animationDuration = `${el.scrollWidth / 60}s`; + }} + > {entries}