Jump to content
Search Community

Rahul Dey

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by Rahul Dey

  1. Thanks for replying so quick. But scrollEnd event is a global event what if I want in particular instance. Maybe we could do some sort of state management. Like let section1_active = false; const section1Tl = gsap.timeline({ scrollTrigger: { trigger: ".section1", onUpdate: (self) => { section1_active = self.isActive }, } }) ScrollTrigger.addEventListener("scrollEnd", () => { if(section1_active) { // Do Something } });
  2. I am working on a animation where I have to detect when user stops the scrolling how can I detect from the ScrollTrigger onUpdate callback. Please Help!
×
×
  • Create New...