How can I smoothly rotate the character when the aim offset.Yaw is above 90 or below -90?

My question is I have an animation that rotates 90 degrees where it is, I will do it to activate it.
In a few of the methods I have done, the character makes an instant turn at 90 degrees where the aim ends, and I want it to turn smoothly.
Could you help me, please?

Also, how can I prevent this rotation(sure i have to do it first) from when IK foot working ?




I don’t know anyone to get help and I still can’t figure out how to do it. Currently, it rotates strangely without going to Right state, but it rotates around its own yaw axis smoothly as I want. Constantly. Am I following the wrong path? can anyone help, please?

Because I’m working on it, some variables are unnecessary now, because I’ve used them before, ignore them.