Repeat this tween `n` total times. After each iteration finishes, a * fresh tween with the same parameters takes over via the `then` slot. * `loop()` with no argument loops forever. * * Mutually exclusive with `pingPong`; calling either replaces the other, * and calling
(count = Infinity)
| 125 | * @returns {Tween} |
| 126 | * @memberof TweenSystem */ |
| 127 | loop(count = Infinity) |
| 128 | { |
| 129 | this.loopRemaining = count; |
| 130 | this.thenCallback = () => loopContinuation(this); |
| 131 | return this; |
| 132 | } |
| 133 | |
| 134 | /** Like `loop`, but swap `start` and `end` between iterations so the value |
| 135 | * bounces back and forth. `pingPong()` with no argument bounces forever. |
no test coverage detected