Chapter 322: .scrollTop
Core Idea
Immediately gets/sets the scroll position (in pixels).
Key Concepts
Code Examples
let scroll = smoother.scrollTop();
- What it demonstrates: typical usage of .scrollTop in a GSAP animation.
Key Takeaways
-
position: Number
Connects To