Line segment iteration

Hi!

I’m trying to do a line trace effect with a begin/end line transition. Until now I’ve managed to make the line in transition, not the out. I’m feeling that’s not te adequate way. Please help. Thx.

[Object 3D Menu - Funilaria Digital]