Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
transition: function * ({ receivedSprites, sentSprites, removedSprites }) {
printSprites(arguments[0]);
// received and sent sprites are flying above all the others
receivedSprites.concat(sentSprites).forEach(sprite => {
sprite.applyStyles({
'z-index': 1
});
});
receivedSprites.forEach(parallel(move, scale));
sentSprites.forEach(parallel(move, scale));
removedSprites.forEach(sprite => {
sprite.endTranslatedBy(0, 0);
continuePrior(sprite);
opacity(sprite, { to: 0 });
});
}