Rotate an image (Infinite loop)

Is it possible create an infinite loop?
Exsample: i have a picture of a gear ( a cogwheel ), and i want move it, scale it, while, it is into an infinite loop!!!

How can i make this motion?

This post explains how to loop or repeat an animation: Howto: Loop or Repeat an Animation

Thank you very much!