You loop a video animation using the video player loop control option. Create your HTML markup to have the player loop the video in your web page. Animated gif can be saved with a loop option using export save for web. There is a Frame limit I believe of 500 for an animated gif
JJMack