What is GIF?
GIF is an image format limited to 256 colours that supports simple animation and transparency.
It suits small graphics and short loops, but photos look rough and files get large. WebP or video usually gives better quality at a smaller size.
Many short clips shared as GIFs today are actually small video files, which are much lighter for the same loop.