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

Method duration

src/gsap-core.js:1176–1178  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

1174 }
1175
1176 duration(value) {
1177 return arguments.length ? this.totalDuration(this._repeat > 0 ? value + (value + this._rDelay) * this._repeat : value) : this.totalDuration() && this._dur;
1178 }
1179
1180 totalDuration(value) {
1181 if (!arguments.length) {

Callers 15

progressMethod · 0.95
iterationMethod · 0.95
endTimeMethod · 0.95
_getLabelRatioArrayFunction · 0.80
ScrollTrigger.jsFile · 0.80
_getScrollNormalizerFunction · 0.80
_elapsedCycleDurationFunction · 0.80
_postAddChecksFunction · 0.80
_parsePositionFunction · 0.80
gsap-core.jsFile · 0.80
TweenFunction · 0.80
ScrollSmootherFunction · 0.80

Calls 1

totalDurationMethod · 0.95

Tested by

no test coverage detected