patx/afterdarklabs
fix ticker on mobile
Commit 5097db0 · patx · 2026-08-24T00:26:56-04:00
Comments
No comments yet.
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;