[Solved] How to play a gltf animation once when mouse is clicked

Do it like so:

var action = mixer.clipAction(gltf.animations[0]);
action.setLoop( THREE.LoopOnce );
action.play();