Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

Rahul Dey

Members
  • Posts

    2
  • Joined

  • Last visited

Rahul Dey's Achievements

1

Reputation

  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!
×