I think you should draw a black and white depth map for the image, whereas the white represents areas closer to the camera and black means more far away from the camera. Now save it as an psd file. Open the target image once again, use 'Filter > Distort > Displacement map'. The image will seem to shift the camera angle. Make a few frames with different settings and finally combine it as a GIF.