I am not sure how to explain without the math. Hope this example helps. It is set to cycle every ten frames. The trig functions Sin and Cos are wave functions and will cycle smoothly, if the math is done right. Turn off skip frames and press play in the material room the nodes will animate. I have several animated shaders (IM an address and I will Email, their not in free stuff, yet).