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

Method progress

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

Source from the content-addressed store, hash-verified

1225 }
1226
1227 progress(value, suppressEvents) {
1228 return arguments.length ? this.totalTime( this.duration() * (this._yoyo && !(this.iteration() & 1) ? 1 - value : value) + _elapsedCycleDuration(this), suppressEvents) : (this.duration() ? Math.min(1, this._time / this._dur) : this.rawTime() > 0 ? 1 : 0);
1229 }
1230
1231 iteration(value, suppressEvents) {
1232 let cycleDuration = this.duration() + this._rDelay;

Callers 15

pausedMethod · 0.95
_endAnimationFunction · 0.45
_getBoundsFunction · 0.45
ScrollTrigger.jsFile · 0.45
proxyCallbackFunction · 0.45
onResizeFunction · 0.45
_interruptFunction · 0.45
gsap-core.jsFile · 0.45
_initTweenFunction · 0.45
killScrubFunction · 0.45
updateChangeFunction · 0.45

Calls 5

totalTimeMethod · 0.95
durationMethod · 0.95
iterationMethod · 0.95
rawTimeMethod · 0.95
_elapsedCycleDurationFunction · 0.70

Tested by

no test coverage detected