diff --git a/src/components/tech-stack-carousel/tech-stack-carousel.css b/src/components/tech-stack-carousel/tech-stack-carousel.css index 709d233..f95bca8 100644 --- a/src/components/tech-stack-carousel/tech-stack-carousel.css +++ b/src/components/tech-stack-carousel/tech-stack-carousel.css @@ -28,7 +28,6 @@ h2 { .stack-carousel-shell { --carousel-nav-space: 4.25rem; - --carousel-edge-fade-size: clamp(1.25rem, 3vw, 2.75rem); position: relative; width: calc(100% + (var(--carousel-nav-space) * 2)); margin-inline: calc(var(--carousel-nav-space) * -1); @@ -48,15 +47,12 @@ h2 { overflow-x: auto; width: 100%; padding: 0.2rem; - scroll-snap-type: none; + scroll-snap-type: x mandatory; + scroll-behavior: smooth; scrollbar-width: thin; 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; @@ -181,7 +177,6 @@ h2 { @media (max-width: 760px) { .stack-carousel-shell { --carousel-nav-space: 0; - --carousel-edge-fade-size: 0.6rem; width: 100%; margin-inline: 0; } diff --git a/src/components/tech-stack-carousel/tech-stack-carousel.html b/src/components/tech-stack-carousel/tech-stack-carousel.html index 1528b4d..8717831 100644 --- a/src/components/tech-stack-carousel/tech-stack-carousel.html +++ b/src/components/tech-stack-carousel/tech-stack-carousel.html @@ -6,29 +6,19 @@