patx/afterdarklabs

sped up ticker

Commit b5a45ab · patx · 2026-08-25T21:00:08-04:00

Changeset
b5a45ab4771c9239db82e24f873858b3ff0a9e0b
Parents
b969798cf531a3c80788d52237144026fff09097

View source at this commit

Comments

No comments yet.

Log in to comment

Diff

diff --git a/docs/index.html b/docs/index.html
index bcc22b9..89c1a49 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -183,7 +183,7 @@
         .hero-ticker-track {
             display: flex;
             width: max-content;
-            animation: hero-ticker-scroll var(--ticker-duration, 20s) linear infinite;
+            animation: hero-ticker-scroll var(--ticker-duration, 14s) linear infinite;
             will-change: transform;
         }
 
@@ -676,7 +676,7 @@
                 }
 
                 track.style.setProperty('--ticker-distance', `${groupWidth}px`);
-                track.style.setProperty('--ticker-duration', `${groupWidth / 40}s`);
+                track.style.setProperty('--ticker-duration', `${groupWidth / 60}s`);
             }
 
             function scheduleTickerMeasure() {