From e5474716ec4f5cd2566a6aa2ed8d7b7a9276d6e5 Mon Sep 17 00:00:00 2001 From: Tim Kainz Date: Thu, 16 Apr 2026 22:56:18 +0200 Subject: [PATCH] improve auto-scrolling and add pause when hovering/clicking --- .../tech-stack-carousel.css | 2 +- .../tech-stack-carousel.html | 11 +- .../tech-stack-carousel.ts | 129 +++++++++++++++--- 3 files changed, 119 insertions(+), 23 deletions(-) diff --git a/src/components/tech-stack-carousel/tech-stack-carousel.css b/src/components/tech-stack-carousel/tech-stack-carousel.css index 3d80b57..958e5f4 100644 --- a/src/components/tech-stack-carousel/tech-stack-carousel.css +++ b/src/components/tech-stack-carousel/tech-stack-carousel.css @@ -74,7 +74,7 @@ h2 { overflow-x: auto; width: 100%; padding: 0.2rem; - scroll-snap-type: x mandatory; + scroll-snap-type: none; scrollbar-width: thin; scrollbar-color: rgba(88, 166, 255, 0.45) rgba(33, 38, 45, 0.65); } diff --git a/src/components/tech-stack-carousel/tech-stack-carousel.html b/src/components/tech-stack-carousel/tech-stack-carousel.html index ca2df20..aa90219 100644 --- a/src/components/tech-stack-carousel/tech-stack-carousel.html +++ b/src/components/tech-stack-carousel/tech-stack-carousel.html @@ -6,12 +6,13 @@