Capítulo 344 de 411

Chapter 344: .previous

Core Idea

Returns the previous ScrollTrigger in the refresh order.

Code Examples

ScrollTrigger.create({
  start: self => self.previous().end, // start at the end of the previous ScrollTrigger
  ...
});
  • What it demonstrates: typical usage of .previous in a GSAP animation.

Key Takeaways

  1. Returns the previous ScrollTrigger in the refresh order.