Parallax creates the illusion of depth by moving foreground elements faster than background elements. It's one of the easiest ways to add production value to flat designs.
What is parallax?
In real life, when you look out a car window, nearby objects (trees, signs) move quickly while distant objects (mountains, clouds) move slowly. Parallax mimics this in 2D.
Method 1: Manual 2D Parallax (Simplest)
1. Separate your scene into layers by depth (foreground, midground, background)
2. Animate all layers moving in the same direction (e.g., all moving left)
3. Foreground moves FASTEST (e.g., Position X: 960 → 200)
4. Midground moves MEDIUM (e.g., Position X: 960 → 500)
5. Background moves SLOWEST (e.g., Position X: 960 → 800)
Rule of thumb: each layer moves ~50-70% of the one in front of it.
Method 2: 3D Camera Parallax (More Realistic)
1. Enable 3D on all layers
2. Place layers at different Z-depths:
- Background: Z = 2000
- Midground: Z = 1000
- Foreground: Z = 0 (or negative for really close)
3. Scale each layer appropriately (farther layers need to be larger to appear the same size)
4. Create a 3D Camera → animate its Position
5. The camera movement naturally creates parallax based on Z-depth
Method 3: Photo Parallax (Ken Burns on Steroids)
Turn a flat photo into a 3D scene:
1. Cut out elements in Photoshop (subject, foreground items, background)
2. Import as separate layers in AE
3. Use Content-Aware Fill to fix the gaps in the background
4. Place layers at different Z-depths
5. Add a 3D camera and animate a slow dolly or pan
Vertical scroll parallax (social media style):
1. Stack your content vertically
2. Animate all layers moving UP at different speeds
3. Foreground fastest, background slowest
4. Add a slight scale animation (100% → 105%) for extra depth feel
Pro tips:
- Add a slight blur to the farthest background layer for depth of field
- Add atmospheric haze (semi-transparent white/blue solid between layers)
- Scale speed differences subtly — too much and it looks unnatural
- For photo parallax, add a very subtle wiggle to the camera for a "handheld" documentary feel
Expression for automated parallax:
depthFactor = index * 0.15; // each layer is slightly slower
value + [time * 100 * (1 - depthFactor), 0]Want a personalized answer for your project?
Ask Oliver for Free →