File: AnimationLoader.md | Updated: 11/15/2025
Class for loading animation clips in the JSON format. The files are internally loaded via FileLoader.
const loader = new THREE.AnimationLoader();
const animations = await loader.loadAsync( 'animations/animation.js' );
Constructs a new animation loader.
manager | The loading manager.
---|---
Starts loading from the given URL and pass the loaded animations as an array holding instances of AnimationClip to the onLoad() callback.
url | The path/URL of the file to be loaded. This can also be a data URI.
---|---
onLoad | Executed when the loading process has been finished.
onProgress | Executed while the loading is in progress.
onError | Executed when errors occur.
Overrides: Loader#load
Parses the given JSON object and returns an array of animation clips.
json | The serialized animation clips.
---|---
Overrides: Loader#parse
Returns: The parsed animation clips.