patx/afterdarklabs

fix ticker on mobile

Commit 5097db0 · patx · 2026-08-24T00:26:56-04:00

Changeset
5097db01969ba77f76838804cde2a02ace8999d2
Parents
bc4f84ca706fa084a56aad4b9d0d4c69d856997d

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 db0874e..ae24756 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -163,11 +163,16 @@
             will-change: transform;
         }
 
-        .hero-ticker:hover .hero-ticker-track,
-        .hero-ticker:focus-within .hero-ticker-track {
+        .hero-ticker:focus-visible .hero-ticker-track {
             animation-play-state: paused;
         }
 
+        @media (hover: hover) and (pointer: fine) {
+            .hero-ticker:hover .hero-ticker-track {
+                animation-play-state: paused;
+            }
+        }
+
         .hero-ticker-group {
             display: flex;
             flex: none;