Infinite animation

I have just a question. How to make an infinite animataion? I mean for example the wave in backround in lesson 8 in certification videos. Now the wave is going back and forward only. But what if I would like to have this move like the wave is waving? I don’t know if my description is good :)