The phenakistiscope was one of the first devices that created the illusion of animated images and a predecessor to the GIF.