Scaling model in animation create unwanted position changes

I’d like my character to change scale (kind of elongating) during the jump animation, and get back to its initial scale at the end of the animation, while keeping its transform of the Y axis the same at the beginning and end of the animation.

I’m having an issue with the transform position of the character, at the beginning and end of the animation, it should be the same, but when I apply scaling, it changes the position as well, making my character clip in the ground.

After a few jump with dynamic scaling :

After a few jump with a constant scale of 1 :
8650716--1164012--upload_2022-12-10_15-33-29.png

My animation modify the position and rotation of my character as well, but this works fine as long as I don’t add scaling animation.

The position of the character is controlled only by animation using root motion.
My guess is that changing the scale changes the root transform and somehow that messes up the
transform itself.

What can I do to fix that ?

You could try making it a part of the animation. Sry if this isn’t helpful.

Thank you for trying ! Could you elaborate a bit ? The animation is done entirely inside Unity, the model was done with Blender.