MCPcopy
hub / github.com/animatedjs/animated / cb

Function cb

src/index.js:217–229  ·  view source on GitHub ↗
(endResult)

Source from the content-addressed store, hash-verified

215
216 animations.forEach((animation, idx) => {
217 var cb = function(endResult) {
218 hasEnded[idx] = true;
219 doneCount++;
220 if (doneCount === animations.length) {
221 doneCount = 0;
222 callback && callback(endResult);
223 return;
224 }
225
226 if (!endResult.finished && stopTogether) {
227 result.stop();
228 }
229 };
230
231 if (!animation) {
232 cb({finished: true});

Callers 1

parallelFunction · 0.85

Calls 1

stopMethod · 0.45

Tested by

no test coverage detected