I am trying to create a gif of a growing line, which changes direction. I drew the line using the path tool, so I need a way to animate drawing process of a BeziƩr curve. Essentially I need to create a similar animation to the the following one (just the red line and the black dot, however the black dot is optional):

