On this documentation page: Load from any file type - glTF, OBJ, STL, etc. - Babylon.js Documentation
The 6th Demo link on the page, just under the text
Loads the animations from the file and merges them to the scene You can customize the import process using options and callbacks"
Demo link -> https://www.babylonjs-playground.com/#UGD0Q0#2
When loading has the error “Unable to import meshes from ./scenes/Elf/Elf.glTF: Failed to load scene. Error status: 404 - Unable to load ./scenes/Elf/Elf.glTF”