Capítulo 364 de 411

Chapter 364: ScrollTrigger.maxScroll

Core Idea

A utility function for getting the maximum scroll value for a particular element/scroller. For example, if the element/scroller is 500px tall and contains 800px of content, maxScroll() would return 300.

Key Concepts

  • scroller: Element | window

  • horizontal: Boolean

Key Takeaways

  1. scroller: Element | window

  2. horizontal: Boolean