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

Method totalTime

src/gsap-core.js:1762–1773  ·  view source on GitHub ↗
(totalTime, suppressEvents)

Source from the content-addressed store, hash-verified

1760 }
1761
1762 totalTime(totalTime, suppressEvents) {
1763 if (!arguments.length) {
1764 return this._tTime;
1765 }
1766 this._forcing = 1;
1767 if (!this._dp && this._ts) { //special case for the global timeline (or any other that has no parent or detached parent).
1768 this._start = _roundPrecise(_ticker.time - (this._ts > 0 ? totalTime / this._ts : (this.totalDuration() - totalTime) / -this._ts));
1769 }
1770 super.totalTime(totalTime, suppressEvents);
1771 this._forcing = 0;
1772 return this;
1773 }
1774
1775 addLabel(label, position) {
1776 this.labels[label] = _parsePosition(this, position);

Callers 15

renderMethod · 0.95
ScrollTrigger.jsFile · 0.45
_postAddChecksFunction · 0.45
gsap-core.jsFile · 0.45
splitMethod · 0.45
revertMethod · 0.45
_getGlobalTimeFunction · 0.45
updateProgressFunction · 0.45
initMethod · 0.45
_postAddChecksFunction · 0.45
totalTimeMethod · 0.45
restartMethod · 0.45

Calls 2

totalDurationMethod · 0.95
_roundPreciseFunction · 0.70

Tested by

no test coverage detected