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
- Indicates whether or not any ScrollTrigger-related scroller is in the process of scrolling.