How to diappear a line renderer from start and end position of line

To a object i attached a line renderer.

Object moves from through some points. it makes line.

All points are given as set positions of line renderer.

Line have to disapper slowly from from both sides

From end position it will disapperar using code

linerenderer.SetVertexCount(curNo);

But how to make disappear fron starting position

You could grab the vertex positions, shift them all down one position (or up depending on which way you want to think of your arrays) then instead of setting the vertex count down by 1, set it down by 2.

That should destroy the line evenly from both ends.