Capítulo 322 de 411

Chapter 322: .scrollTop

Core Idea

Immediately gets/sets the scroll position (in pixels).

Key Concepts

  • position: Number

Code Examples

let scroll = smoother.scrollTop();
  • What it demonstrates: typical usage of .scrollTop in a GSAP animation.

Key Takeaways

  1. position: Number

Connects To