Need help with animation controlled by a float. Please answer as soon as possible

Hello, I am developing a multiplayer FPS game for android in unity 2019.4.12f1. But the issue is when I try to leave the virtual joystick, it suddenly snaps back to the idle animation and that looks weird.(Please see the details in the video.)

And also note that when I move the joystick slowly, the also animation plays slowly. Please help me with both of these issues. Thank you

Hi guys, i got a solution from reddit. If you want to check it out, here is the link: Reddit - Dive into anything