How can I have texture animations only when camera moves?

What kind of animation does your material have? Flip book/sprite sheet, scrolling textures, rotating textures?

Can you give an example under what circumstances would you like to play the animation only as long as the camera moves?