Capítulo 113 de 411

Chapter 113: Tween.repeat()

Core Idea

repeat() gets or sets how many additional times the tween plays after its first pass — same behavior as Timeline.repeat().

Code Examples

gsap.to(el, { x: 100, repeat: -1 }); // loop forever

Connects To

  • Timeline.repeat(): identical mechanism on the Timeline class.