Change Text Animation Direction With FFMPEG
x=tw-min(4*(tw\+10)-(abs(4-2*(t-1)))*(tw+10)-tw\,w/3.5)

With this script I can animate text from right to left and stay in middle for a second and then go back to right side.