Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
sentSprites.forEach(sprite => {
// Caution! This is a hack. It just happens to be safe in this situation
// because we're messing with only the children of sentSprites, which will
// all get destroyed at the end of animation regardless.
[...sprite.element.children].forEach(element => {
element.classList.add('ember-animated-hidden');
});
sprite.applyStyles({ 'z-index': 1 });
move(sprite);
resize(sprite);
adjustColor.property('background-color')(sprite);
});
}
receivedSprites.forEach(sprite => {
move(sprite);
resize(sprite);
});
},
keptSprites.forEach(sprite => {
resize(sprite, { easing: easeInAndOut, duration });
});
}
receivedSprites.forEach(sprite => {
sprite.applyStyles({ 'z-index': 1 });
move(sprite);
resize(sprite);
});
},