Would your code be trying to change the animation on every frame? That would cause the animation to always reset, making it look frozen.