You can create photos like this by rapidly moving the image between two perspectives which will trick the brain to perceive that a 3D space is present.
“Time for space” describes the what happens when you use the two halves of a stereo pair as frames in an animation, so that you see them sequentially in time rather than arranged in space. The human brain, struggling to make sense of the images put before it, tends to perceive depth in a manner quite similar to the effect of a stereo photograph. The elements that differ spatially between the two parts of a pair will seem to “wiggle” when presented in time.”
See also: Photos