redesigned homepage with GSAP scroll sections and fixed mobile services carousel snap

Added new scroll-based sections (Hero, Filosofia, Approccio, BeforeAfter, CTA) with GSAP ScrollTrigger animations. Fixed mobile carousel in ServicesSection: cards now snap correctly to one-per-swipe and dot indicators track accurately. Added ScrollProgressDots component and useGsapScrollTrigger hook.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-09 17:06:06 +02:00
parent 37d27e0bdb
commit d3f9496c05
22 changed files with 2236 additions and 324 deletions
+18
View File
@@ -40,6 +40,15 @@ html {
scroll-behavior: smooth;
}
/* Scroll snap for section-by-section navigation */
.snap-container {
scroll-snap-type: y proximity;
}
.snap-section {
scroll-snap-align: start;
}
body {
font-family: var(--font-sans);
background: var(--color-background);
@@ -111,3 +120,12 @@ img {
background: var(--color-surface-container-high);
}
}
/* Hide scrollbar for horizontal carousels */
.scrollbar-hide {
-ms-overflow-style: none;
scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
display: none;
}