I make a origami paper folding animation in blender using AnimAll extension to animate the vertices. I exported the gltf to contain the vertex animations using the method told by @domncurdy and it got exported fine with all the animations (i tested running the file on babylon’s viewer). It is not working fine on three js though. The animations are showing entirely different result. See the attached video.
let object = (gltf.scene || gltf.scenes).children; scene.add(object); mixer = new THREE.AnimationMixer(object); mixer.clipAction(gltf.animations).play();