
Javascript
Locomotive-scroll + Scroll Trigger 결합 사용하기
// 먼저 Scroll Trigger를 처리할 수 있도록 GSAP에 plugien을 등록 gsap.registerPlugin(ScrollTrigger); /* ====================================== LoomotiveScroll 초기화 설정 = > SmoothScroll 기능사용을 위해 el에는 SmoothScroll을 on에 하고 싶은 부분을 지정 ====================================== */ const locoScroll = new LocomotiveScroll({ el: document.querySelector(".smooth-scroll"), smooth: true }); /* ===================================..