The manual provides some detail on what types of animation the glTF exporter supports:
https://docs.blender.org/manual/en/latest/addons/import_export/scene_gltf2.html#animations
If that doesn’t answer your question, I think you’ll need to share information about how your animation is created, or the .blend
file.