console.log('RUNNING NINACONCEPT VER 3.JS'); // Lenis initialization for main page smooth scroll (unchanged) const lenis = new Lenis({ duration: 1.6, smoothWheel: true, smoothTouch: true, easing: t => 1 - Math.pow(2, -10 * t), touchMultiplier: 2, }); function raf(time) { lenis.raf(time); requestAnimationFrame(raf); } requestAnimationFrame(raf); // --- Swiper.js Initialization --- // This replaces the old custom drag - to - scroll logic entirely. const swiper = new Swiper('.swiper', { slidesPerView: 5, // Shows as many slides as can fit without breaking them. Essential for this layout. spaceBetween: 30, // The gap between slides in pixels. Adjust as needed. grabCursor: true, // Shows the "grab" and "grabbing" cursor for better UX. loop: true, // Creates an infinite loop. Swiper handles cloning slides automatically. freeMode: { enabled: true, sticky: true, }, grabCursor: true, autoplay: { delay: 5000, }, });