How to disable animation loop in Phaser

When jumping my player has a jump start animation that is 3 frames long and a jump end animation that is 4 frames long. The problem is that the start and end animations are repeated over and over again and I want that when the animation ends it doesn’t repeat itself and stays in the last frame until the character lands.
Is there a way to set .loop = false for the animation?

Animations shouldn’t loop unless you’ve set them to. But if you’re playing animations in update() then you may need to avoid restarting them somehow.

i noticed that the animation was being commanded to play every instant in update() so i added booleans in the player like player.jumpStartFlag = false.