The right photo
Clear separation between foreground, subject and background, high resolution and no motion blur. Portraits, street scenes and landscapes with a strong foreground work best.
Photo animation // 2.5D
A good parallax shot makes a flat photo feel like it was filmed with a slow camera move. Here is the full workflow, from cutting layers in Photoshop to the camera move and depth map in After Effects.
[ 01 ] Overview
The 3D photo effect, also called 2.5D parallax, splits a still image into depth layers and moves a virtual camera through them. The foreground moves faster than the background, just like in real footage. Documentaries, music videos, history channels and product promos use it to bring photos to life.
Photo animation toolkits are among the best-selling After Effects projects on marketplaces, which shows how often editors need this look. Below are the two methods behind most of them: a layered camera move and a depth map.
[ 02 ] Why it works
Clear separation between foreground, subject and background, high resolution and no motion blur. Portraits, street scenes and landscapes with a strong foreground work best.
Each depth layer needs a precise mask. Hair and soft edges take the most time, so start with Photoshop's Select Subject and refine with Select and Mask.
When the subject moves, the area behind it is revealed. Fill it with Content-Aware Fill or Generative Fill so no holes appear.
Layers are placed at different distances from the camera. More distance between them means stronger parallax.
A gentle push in, pull out or slide over four to six seconds. Fast or long moves reveal stretched edges.
Dust particles, light leaks, grain and a little depth of field make the shot feel filmed rather than assembled.
[ 04 ] How to use it
Cut the photo into three to five layers, for example foreground, subject and background. Use Select Subject, refine the edges with Select and Mask, and put each part on its own layer.
On the background layer, select the area where the subject was and use Content-Aware Fill or Generative Fill. Extend the edges of every layer a little so they never show gaps when they move.
Choose File > Import, select the PSD and import it as Composition – Retain Layer Sizes. Every Photoshop layer becomes its own layer in After Effects.
Turn on the 3D switch for each layer and push the background further away on the Z axis. Scale each pushed layer up until it fills the frame again.
Add a camera (Layer > New > Camera) and animate a slow move on its Z position, with easy ease on both keyframes. For more control, build a camera rig with a null.
[ 05 ] Go further
A depth map is a greyscale image where brightness shows distance. In Photoshop, Neural Filters > Depth Blur has an Output depth map only option. Other AI tools can also generate depth maps from a single photo.
Place the depth map in its own composition and add it to your main comp, hidden. On the photo layer, apply Displacement Map, choose the depth map layer and set horizontal and vertical displacement to use luminance.
Keyframe Max Horizontal Displacement from a small negative value to a small positive one, for example −10 to 10. Near and far pixels shift by different amounts, which creates the parallax.
The depth map is faster and great for subtle moves, but it stretches edges when pushed. Layers take longer and give cleaner, bigger moves. Many editors combine both: layers for the subject, a depth map for the background. For the masking side, see rotoscoping in After Effects.
[ 06 ] FAQ
Not in one click. You either separate the photo into layers and move a camera through them, or drive Displacement Map with a depth map. Templates and scripts automate parts of this.
A sharp, high-resolution photo with clear foreground, subject and background. Busy, flat or blurry images are hard to separate convincingly.
The move reveals areas the photo never contained. Fill the background with Content-Aware Fill or Generative Fill, extend layer edges and keep the camera move small.
It is the easiest way to cut layers and fill backgrounds. You can also mask in After Effects with Roto Brush and use its Content-Aware Fill panel, but it takes longer on stills.
Four to six seconds is typical. Longer shots need very slow moves, otherwise the illusion breaks.
Yes. Use a tall composition and a photo with enough height, or extend the image vertically with Generative Fill before you start.
[ Next step ]
Browse templates in the OlafMotion library, or have us build a custom photo animation for your brand or channel.
Olaf Motion
AI assistant · online
AI assistant, may make mistakes · Privacy