One approach to solve this is to register an event listener to the animation mixer’s finished
event.
mixer.addEventListener( 'finished', ( event ) => {
console.log( 'Finished animation action: ', event.action );
// start next animation
});
In this way, you automatically know when an animation action has finished its playback and then start the next one.