The full length of those animations or media are recorded in the GIF. If a slide in your presentation has animations or media that add up to more than the minimum duration, that is fine. The default value for this minimum setting is one second. This is a minimum duration that applies to all slides. When you save your presentation as GIF, you'll specify the Seconds spent on each slide. The end result will be a continuously looping. Processing time depends on the file size and quality setting. PowerPoint will begin saving your presentation as a GIF, and it'll notify you when it's done. See more details below under 'Timing the slides.' Time spent can be longer, but not shorter, than this minimum. Select the minimum Seconds spent on each slide. Use the dropdown box to change it to a higher or lower setting, if you prefer. In the dialog box, set the File Format to GIF and specify where the finished file should be saved.
Set up your presentation, complete with any illustrations, animations, and transitions you want.