Skip to content

Download Started!

Your download has begun.

Photo animation // 2.5D

3D Photo Parallax in After Effects: Turn Still Photos into Moving Shots

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.

  • Two methods: layered camera move or depth map
  • Clean backgrounds with Content-Aware Fill
  • Subtle moves that never break the illusion

[ 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

What you need for a convincing 3D photo

01

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.

02

Clean cut-outs

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.

03

A rebuilt background

When the subject moves, the area behind it is revealed. Fill it with Content-Aware Fill or Generative Fill so no holes appear.

04

Depth spacing

Layers are placed at different distances from the camera. More distance between them means stronger parallax.

05

A slow camera move

A gentle push in, pull out or slide over four to six seconds. Fast or long moves reveal stretched edges.

06

Atmosphere

Dust particles, light leaks, grain and a little depth of field make the shot feel filmed rather than assembled.

[ 04 ] How to use it

Method 1: layered camera move

1. Separate the layers in Photoshop

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.

2. Fill the holes

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.

3. Import into After Effects

Choose File > Import, select the PSD and import it as Composition – Retain Layer Sizes. Every Photoshop layer becomes its own layer in After Effects.

4. Space the layers in 3D

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.

5. Add a camera

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

Method 2: depth map with Displacement Map

1. Create a depth map

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.

2. Apply Displacement Map

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.

3. Animate the displacement

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.

Which method to choose

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

Frequently asked questions

Can After Effects make a 3D photo automatically?

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.

What kind of photo works best for parallax?

A sharp, high-resolution photo with clear foreground, subject and background. Busy, flat or blurry images are hard to separate convincingly.

Why do the edges stretch or show holes?

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.

Do I need Photoshop for a 3D photo effect?

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.

How long should a parallax shot be?

Four to six seconds is typical. Longer shots need very slow moves, otherwise the illusion breaks.

Does the effect work in 9:16?

Yes. Use a tall composition and a photo with enough height, or extend the image vertically with Generative Fill before you start.

[ Next step ]

Bring photos to life faster

Browse templates in the OlafMotion library, or have us build a custom photo animation for your brand or channel.