If we are talking about animation from the center:
1) add trim path to the line
2) duplicate the line
3) set 1st line trim keyframes Start 50%->0%
4) set 2st line trim keyframes End 50%->100%
voilàa
If we are talking from other point we need to change percentage