Animating spline with geometry nodes

I try to animate curve appearance by trim curve node. But trimming path is based on points index, so curve go to third point and turn left to 4,5,6, that come back and turn right to 7,8,9 etc. My goal is to make apearance simultaneously in all directions after each path sepating. How can i do it with geonodes?