Capítulo 324 de 411

Chapter 324: .smooth

Core Idea

Gets/Sets the number of seconds it takes to catch up to the scroll position (smoothing).

Key Concepts

  • duration: Number

Code Examples

// setter
smoother.smooth(1.5);

// getter
let duration = smoother.smooth();
  • What it demonstrates: typical usage of .smooth in a GSAP animation.

Key Takeaways

  1. duration: Number