How can I have texture animations only when camera moves?

I’m also pretty sure there is not a material function for that and you have to do it like Begounet described.