Is there a way to make one part of the movie loop while the rest of the movie plays?

ie, If I wanted a shape to rotate continuously in the background while other things happened in the foreground.

I was just wondering beacuse if the whole movie is 200 frames long and the rotation is only 20 frames long, I would have to put in the rotation 10 times.