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

Function _killFlip

esm/Flip.js:881–894  ·  view source on GitHub ↗
(tl, action, force)

Source from the content-addressed store, hash-verified

879 tl.getChildren(true, false, true).forEach(_interrupt);
880},
881 _killFlip = function _killFlip(tl, action, force) {
882 // action: 0 = nothing, 1 = complete, 2 = only kill (don't complete)
883 if (tl && tl.progress() < 1 && (!tl.paused() || force)) {
884 if (action) {
885 _interrupt(tl);
886
887 action < 2 && tl.progress(1); // we should also kill it in case it was added to a parent timeline.
888
889 tl.kill();
890 }
891
892 return true;
893 }
894},
895 _createLookup = function _createLookup(state) {
896 var lookup = state.idLookup = {},
897 alt = state.alt = {},

Callers 2

_fromToFunction · 0.70
Flip.jsFile · 0.70

Calls 4

pausedMethod · 0.80
_interruptFunction · 0.70
killMethod · 0.65
progressMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…