Getting repeating ocean for GIF


I have just started use Blender as it’s possible to import animations to Sketchup then you are using Vray there I work a lot.
To make a ocean was quite simple after looking on Youtube but when I tried to make a simulation that would work for a repeating GIF I got stock. I have search on google and found some answers but I feel that I probably don’t know enough about Blender to understand.
Can someone be kind to explain how I make a ocean that can be repeated without looking wired?

Have got the answer at Reddit already