How can edge loops move independently and stay connected?
Animate the bones of an Armature in Pose Mode.




Above is quick armature which you can greatly improve.
An armature modifier was created.
The master bone has deform disabled.  The other two bones deform the mesh.

A vertex group is selected to show weights.