MCPcopy
hub / github.com/greensock/GSAP / iteration

Method iteration

src/gsap-core.js:1231–1234  ·  view source on GitHub ↗
(value, suppressEvents)

Source from the content-addressed store, hash-verified

1229 }
1230
1231 iteration(value, suppressEvents) {
1232 let cycleDuration = this.duration() + this._rDelay;
1233 return arguments.length ? this.totalTime(this._time + (value - 1) * cycleDuration, suppressEvents) : this._repeat ? _animationCycle(this._tTime, cycleDuration) + 1 : 1;
1234 }
1235
1236 // potential future addition:
1237 // isPlayingBackwards() {

Callers 2

progressMethod · 0.95
gsap-core.jsFile · 0.80

Calls 3

durationMethod · 0.95
totalTimeMethod · 0.95
_animationCycleFunction · 0.70

Tested by

no test coverage detected