Graphic Design

How to Create a Simple Parallax Effect from a Single Photo in After Effects

You’ve got a stunning still photo, perhaps a landscape with a prominent foreground element, but it feels a bit flat for your social media feed or video project. You want to add dynamic movement, a sense of depth, without needing complex 3D software or multiple camera angles. The good news is that you can achieve an impressive parallax effect from a single photo in After Effects, transforming a static image into a captivating 2.5D animation.

This guide is for intermediate creators who know After Effects basics but want to learn specific techniques to elevate their work. We’ll show you how to create depth in 2D animation and fake 3D camera movement in After Effects using just two layers and the power of opposing movements. This technique is often referred to as a "2.5D animation from photo" because it bridges the gap between 2D and 3D without true three-dimensional assets.

Thumbnail for Juno School's Designs with Micro Animations course, featuring abstract shapes and dynamic lines.
Recommended Course on JunoDesigns with Micro Animations
View Course →

Introduction: What is the Parallax Effect (and Why You Don't Need a 3D Camera)

The parallax effect is an optical illusion where objects closer to the viewer appear to move faster than objects farther away when the viewer’s perspective changes. Think about looking out a car window: nearby trees whiz by, while distant mountains seem to crawl. In After Effects, we simulate this by manipulating the movement and scale of different layers within a single image. The goal is to create this perception of depth using just two key layers: a foreground and a background.

You don't need a virtual 3D camera within After Effects for this specific technique. Instead, we'll achieve a convincing fake 3D camera movement After Effects by carefully orchestrating the relative motion of your separated image elements. This method is efficient and powerful, giving your static photos a new lease on life.

Step 1: Separate Your Foreground and Background

The foundation of any good parallax effect is a clean separation of your image elements. For this tutorial, let's consider an example where you have a clear foreground subject, like a person, against a distinct background. We'll use a silhouette-like image to illustrate, but the principle applies to any photo with a clear subject.

  1. Open your image in Photoshop: Start by opening your chosen photo in Adobe Photoshop.
  2. Cut out the foreground element: Use selection tools like the Quick Selection tool, Object Selection tool, or the Pen tool to meticulously select your foreground subject (e.g., the person). Refine the selection as needed.
  3. Create a new layer for the foreground: Once selected, duplicate the selected area onto a new layer (Ctrl/Cmd + J). This will be your foreground layer.
  4. Generate a clean background plate: Go back to your original background layer. With the foreground subject still selected (or re-select it if needed), use Photoshop's Generative Fill (if available in your version) or Content-Aware Fill to remove the subject and fill the space with a seamless continuation of the background. The aim is to create a "clean plate" – a version of your background without the foreground element.
  5. Export as separate layers: Save your Photoshop file, ensuring both the foreground layer and the clean background layer are preserved. You can then import this PSD directly into After Effects, and it will recognize the layers.

Step 2: The Core Principle: Opposing Movements

This is where the magic of creating a parallax effect from a single photo truly happens. To generate the illusion of depth, your foreground and background layers must move relative to each other, but most importantly, in *opposing directions*. As one layer moves or scales in one way, the other should react in the opposite manner. This is the essence of an "opposing movement animation."

Imagine you have just two layers: your foreground and your background. If your foreground layer is moving to the left, your background layer should move to the right. If your foreground is scaling up (getting closer), your background should scale down (moving further away). As one of the instructors at Juno School explains, "You should imagine you have just two layers: one is going this way, and the other is going to the opposite side, so relatively, the movement of both feels exaggerated." This exaggeration is what sells the illusion of depth.

For example, to simulate a camera pushing in and moving slightly left:

This opposing dance between the layers creates a much more pronounced sense of depth than if both layers moved in the same direction or only one moved. It's a good practice to ensure this opposing movement is always present to enhance the depth.

Step 3: Applying Opposing Movements in After Effects

Now, let's bring our separated layers into After Effects and apply the opposing movements to create your 2.5D animation from photo. We'll animate both Position and Scale properties for each layer.

  1. Import your layers: Open After Effects and import your Photoshop file. Drag the composition created from your PSD into a new composition timeline. You should see your foreground and background as separate layers.
  2. Set initial keyframes:
    • Select both your foreground and background layers in the timeline.
    • Press 'S' to reveal the Scale property and 'P' to reveal the Position property.
    • Click the stopwatch icon next to both Scale and Position for *both* layers to set initial keyframes at the beginning of your timeline (e.g., 0 seconds).
  3. Move in the timeline: Advance your playhead to a later point in your timeline where you want the animation to conclude (e.g., 3-5 seconds).
  4. Animate the foreground layer:
    • Select your foreground layer.
    • Scale: Increase the scale slightly (e.g., from 100% to 110-115%). This makes it appear to zoom in.
    • Position: Adjust its position slightly to the left (e.g., move the X-value down).

    As one of the instructors demonstrates, you'll see the top layer (foreground) zoom in and move towards the left. This creates the illusion of the camera moving forward and slightly to the left.

  5. Animate the background layer with opposing movement:
    • Select your background layer.
    • Scale: Decrease the scale slightly (e.g., from 100% to 90-95%). This makes it appear to recede.
    • Position: Adjust its position slightly to the right (e.g., move the X-value up).

    The instructor notes, "The movement of the sky (background) is going to the opposite side." This is crucial. While one scales up, the other scales down; while one moves left, the other moves right. Another observation from the course highlights this: "One's scale is increasing, and we can also decrease the scale of the other. And as we come here, we move its position to the other side."

  6. Refine and combine: Play back your animation. When both layers are combined, you'll notice an automatically added depth. To make your animations smoother and more professional, consider applying Easy Ease (F9) and adjusting curves in the Graph Editor.

By carefully coordinating these opposing movements, you effectively create a compelling parallax effect, making your single photo feel like a dynamic scene.

Step 4: Adding a Stock Video Background for Extra Dynamism

While the two-layer parallax effect is powerful on its own, you can take it to the next level by replacing your static background plate with a dynamic stock video. This advanced tip, also covered in Juno's Designs with Micro Animations course, can add an incredible layer of realism and visual interest.

Imagine your foreground subject (the person) against a beautiful sunset sky with actual moving clouds, or a city skyline with subtle traffic movement. This elevates the entire scene. As the instructor suggests, "To add more depth, there can be two things: the background, we can also add a little movement to it. But it's a good practice to have that, have an opposing movement." This means even if you use a video, ensure its movement complements or opposes the foreground's motion for maximum impact.

  1. Find suitable stock footage: Look for stock videos that match the mood, lighting, and perspective of your foreground element. Consider elements like moving clouds, subtle water ripples, or distant city lights.
  2. Replace the static background: Simply drag your chosen stock video into your After Effects composition, placing it *below* your foreground layer. Adjust its scale and position to fit the scene.
  3. Blend and color correct: You might need to adjust the color grading, saturation, or brightness of the stock footage to seamlessly blend it with your foreground. Use adjustment layers and effects like Lumetri Color for this.
  4. Synchronize movements: Ensure the inherent movement within the stock video (e.g., clouds moving) works in harmony with the opposing movement you've applied to your foreground. If your foreground is moving left, a background video that subtly moves right or shows elements receding will enhance the effect.

This technique turns a simple parallax effect into a truly immersive visual experience, making your 2.5D animation from photo feel incredibly professional and engaging.

Ready to level up your career?

Join 5 lakh+ learners on the Juno app. Certificate courses in Hindi and English.

Get it onGoogle Play
Download on theApp Store