Capítulo 106 de 411

Chapter 106: Tween.iteration()

Core Idea

iteration() gets or sets which repeat cycle the tween is on — same behavior as Timeline.iteration().

Code Examples

let tween = gsap.to(el, { x: 100, repeat: 5 });
tween.iteration(3);

Connects To

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