I have an array named mesh
with 10 individual meshes stored in it.
console.log(mesh.length) // -> 10;
My goal is to animate a scale change for each mesh by assigning a new scale value to them. To achieve this, I utilize a for
loop in combination with the tween.js library:
for (var i in mesh){
new TWEEN.Tween(mesh[i].scale).to({ x: 4, y: 4 }, 1000).start();
}
However, I am in search of a way to execute a function once all tweens have finished. Specifically, I want to display:
console.log('all interpolations are completed');
Can you provide guidance on how to accomplish this task?