Capítulo 58 de 411
iteration() gets or sets which repeat cycle a repeating timeline is currently on, letting you jump straight to a particular pass.
| Parameter | Type | Description |
|---|---|---|
value | Number | which repeat iteration to jump to (1-indexed) |
Returns: Number (getter) or self (setter).
let tl = gsap.timeline({ repeat: 5 });
tl.iteration(3); // jump to the 3rd pass