Pulled from: https://motionarray.com/learn/after-effects/loop-video-animations-after-effects/
Start with a piece of footage in your composition you want to loop. Grab a stock video clip if you need one to try out.
Now let’s say you have a precomposed animation that you want to loop, you would have to approach this differently. Here are the steps: