Scroll text left to right and back I am using this line which works fine for showing text in 3 lines starting at 0.3sec, ending at 0.6 sec. in bottom left corner.

I would like to add scroll in and scroll out effect in ffmpeg.

Both in and out should be fast, lets say .05sec.

Scroll in should end in position like its written in code, remaining there for those 3 sec, then scrolling out.

ffmpeg -i scrollin.mp4 -vf "[in]drawtext=enable='between(t,3,6)':fontsize=50:fontcolor=Green:fontfile='ariblk.ttf':text='textline1':x=10:y=h-th-130, drawtext=enable='between(t,3,6)':fontsize=50:fontcolor=White:fontfile='ariblk.ttf':text='textline2':x=10:y=h-th-75, drawtext=enable='between(t,3,6)':fontsize=50:fontcolor=White:fontfile='ariblk.ttf':text='textline3':x=10:y=h-th-20[out]" -codec:a copy scrollout.mp4
Use this filter expression:

"drawtext=enable='between(t,2.5,6.5)':fontsize=50:fontcolor=Green:fontfile='ariblk.ttf': \
text='textline1':x=min(4*(tw\+10)-(abs(4-2*(t-2.5)))*(tw+10)-tw\,10):y=h-th-130"


The above is for the first line. I've changed the values/expression for the enable and xparameters. The movement starts at 2.5 seconds, settles at 3s, stays till 6s and then disappears by 6.5