Procedural material not bending correctly around mesh during animation
The problem was that you used object coordinates. Object coordinates always point towards obeject X, Y and Z-axis. To fix this you have to either change it to UV or Generated coordinates which bend with the object.
SET TO GENERATED:

SET TO UV: