Animate every point of a line to another line

In these examples, the geometry is animated. You can do it similar to this.

From the Collection of examples from discourse.threejs.org.

SwingingPolygon

CorrugatedFabric
CircleDynamicallyFormable
MorphBoxSphere
Curved2Geometry