Custom code

I am trying to figure out how to do some designs but can not figure it out alone.
can someone please help me with how to do this handwriting animation?
Thank you!