The gltf viewer logic on run animation

Hello folk , i have animation from blender with 58 actions, and i want to play it into threejs, when i import the model in gltf viewer and click play all from the right side, it work perfectly, buut in my code i try

 mixer = new THREE.AnimationMixer(model);
    for (var i = 0; i !== numAnimations; i++) {
        action[i] = mixer.clipAction(gltf.animations[i]);
        createAnimation(mixer, action, gltf.animations[i]);
        action[i].play();
    }

but it doesn’t work ,like the animation mix, some thing disappear, or flick …
is some thoughts ?
thanks

just a reminder for help please

Do you mind demonstrating what you are doing with a complete live example? Edit fiddle - JSFiddle - Code Playground

Right now, it’s hard to investigate the issue since your code snippet does not look suspicious.

I just want to play animation on this file like when i click play all on gltf viewer https://gltf-viewer.donmccurdy.com/
box.glb (269.1 KB)