Capítulo 360 de 411

Chapter 360: ScrollTrigger.isScrolling

Core Idea

Indicates whether or not any ScrollTrigger-related scroller is in the process of scrolling.

Code Examples

if (ScrollTrigger.isScrolling()) {
  // do something if scrolling
}
  • What it demonstrates: typical usage of ScrollTrigger.isScrolling in a GSAP animation.

Key Takeaways

  1. Indicates whether or not any ScrollTrigger-related scroller is in the process of scrolling.