mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-01 00:42:49 +08:00
News ticker: scroll a bit slower
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
This commit is contained in:
1 parent
3c24ddc7d3
commit
bcdbabe201
1 file changed
+2
-2
+2
-2
@@ -2659,11 +2659,11 @@ function NewsTicker() {
|
||||
<span className="ts-news-label">{t("news.label")}</span>
|
||||
<div className="ts-news-track">
|
||||
{/* Duration from the distance travelled (track + text), so the speed is
|
||||
the same ~60 px/s on every screen width. */}
|
||||
the same ~45 px/s on every screen width. */}
|
||||
<div
|
||||
className="ts-news-scroll"
|
||||
ref={(el) => {
|
||||
if (el) el.style.animationDuration = `${el.scrollWidth / 60}s`;
|
||||
if (el) el.style.animationDuration = `${el.scrollWidth / 45}s`;
|
||||
}}
|
||||
>
|
||||
{entries}
|
||||
|
||||
Reference in new issue
Block a user