I drew the picture and made several copies of the picture, slightly changing the different moving parts each time. I put all the photos in the same picture, made them into an animation, and saved it as a .gif.
I took a whole bunch of photos while moving the camera around, and put them all in the same photo, moving them into the correct order and lining up different landmarks.