An animation of a glass filling up with water I made by using the Blender fluid simulator. It's small because the gif file was too big otherwise and it would take a much longer time to import each frame (hours).
I had to work out how to import this so if you were wondering how I got something this long into scratch: What I did was convert my file to a gif on https://ezgif.com/ . Then optimized the gif on the same website. The gif was still too big so I went onto the website again and resized it to 50%. All in all this reduced the size from 6.8mb to 1.6mb but the picture is smaller and the quality is much worse than the original.