Chapter 374: ScrollTrigger.update
Core Idea
Checks where the scrollbar is and updates all ScrollTrigger instances' progress and direction values accordingly, controls the animation (if necessary) and fires the appropriate callbacks.
Key Concepts
- Checks the location of the scrollbar and updates each ScrollTrigger's
progress and direction values accordingly.
- Controls the linked animation (if necessary).
- Fires the appropriate callbacks like onEnter, onToggle, onUpdate, etc.
Key Takeaways
- Checks the location of the scrollbar and updates each ScrollTrigger's
progress and direction values accordingly.
- Controls the linked animation (if necessary).
- Fires the appropriate callbacks like onEnter, onToggle, onUpdate, etc.
Connects To