From 17fbfc50229ca773e4d45f6ca423a0f975520146 Mon Sep 17 00:00:00 2001 From: Tim Kainz Date: Thu, 16 Apr 2026 20:01:54 +0200 Subject: [PATCH] constant auto-scrolling --- .../tech-stack-carousel.css | 4 + .../tech-stack-carousel.html | 10 ++- .../tech-stack-carousel.ts | 79 ++++++++++++++----- 3 files changed, 71 insertions(+), 22 deletions(-) diff --git a/src/components/tech-stack-carousel/tech-stack-carousel.css b/src/components/tech-stack-carousel/tech-stack-carousel.css index d20294d..fd7e591 100644 --- a/src/components/tech-stack-carousel/tech-stack-carousel.css +++ b/src/components/tech-stack-carousel/tech-stack-carousel.css @@ -50,6 +50,10 @@ h2 { scrollbar-color: rgba(88, 166, 255, 0.45) rgba(33, 38, 45, 0.65); } +.stack-carousel.is-auto-scrolling { + scroll-snap-type: none; +} + .stack-slide { flex: 0 0 min(320px, calc(100% - 0.2rem)); scroll-snap-align: start; diff --git a/src/components/tech-stack-carousel/tech-stack-carousel.html b/src/components/tech-stack-carousel/tech-stack-carousel.html index db5e4e4..8f69ecc 100644 --- a/src/components/tech-stack-carousel/tech-stack-carousel.html +++ b/src/components/tech-stack-carousel/tech-stack-carousel.html @@ -18,8 +18,14 @@