stop
The event fired when this animation is stopped. This can be used, for example, to play a sound or start a particle system, when the animation stops.
This event is fired at the end of the frame after the scene is rendered.
animation.stop.addEventListener(function(model, animation) {
console.log(`Animation stopped: ${animation.name}`);
});
Content copied to clipboard