Why GSAP?
GSAP remains the industry standard for high-performance, timeline-based animations.
ScrollTrigger Basics
Pinning sections and scrubbing animations allows developers to tie visual states directly to the user's scrollbar.
"A well-executed scroll animation feels like a physical interaction, not just a visual effect."
Common Pitfalls
- Laggy Scrubs: Avoid
scrub: 1on consecutive pinned sections. Usescrub: truefor 1:1 hardware-synced performance. - Unresponsive Layouts: Always use
invalidateOnRefresh: trueso your trigger points recalculate when the user resizes their window.