I'm trying to simulate quickly the waving of a flag by deforming it with a curve modifier and moving that modifier along it's local x-axis, giving the impression that it's waving and allowing it to be easily looped. However, moving the curve also shifts the position of the 'fabric' around. Images below:
Before moving the curve:
After moving the curve:
So in the second image I would like the flag to remain aligned to the pole, but with a different displacement. How can I resolve this?