Move to left or right animation returns to original place

I m making a lane based game with 3 lanes.

Player starts from middle lane.I have animation for move left and move right.

On swiping to left or right the left or right animation plays but player returns back to middle lane.

Is there any way so that when animation ends playing then character remains in their respective lane.

I m explicitly able to move the capsule component to respective lane when animation ends,but the transition is not smooth.

Please guide me devs.

You can use a Timeline to make transition smooth

Here is a solution:

I m looking into your answer.
Thanks a lot buddy for having time for me.