Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
removedSprites.forEach((sprite: Sprite) => fadeOut(sprite));
yield Promise.all(removedSprites.map(sprite => fadeOut(sprite, { duration: 200 })));
removedSprites.forEach(sprite => {
fadeOut(sprite, { duration });
});
}
removedSprites.forEach(sprite => fadeOut(sprite, { duration: duration / 2 }));
}
*separateTransition({ insertedSprites, removedSprites, keptSprites }) {
for (let sprite of insertedSprites) {
sprite.startTranslatedBy(0, -sprite.finalBounds.height);
move(sprite);
}
for (let sprite of keptSprites) {
move(sprite);
}
for (let sprite of removedSprites) {
fadeOut(sprite);
}
},