1

const magic = animations.map(() => {});

2

const magic = animations.map((animation) => {
animation.start();
return animate.complete('smooth');
});
const magic = animations.map(() => {});