With the path in animation design, you can draw the path you need. If you want to rotate, draw a circular path.
Step 1: Draw the optional path you want.
Step 2: Do the export effect of line segment 1
Step 3: Make the appearance of line segment 2.
I have done it, and it can be achieved.
Please contact me if you have any questions.