There is the loopout expression or you can take your BG, back it up halfway. Copy the layer. On the copy move it forward halfway then animate a opacity dissolve between the two layers in the middle where they meet. Then render this out. Bring back in and set the footage to loop in the loop options.