How To Animate Photos In Photoshop! 2.5D Parallax Effect

Text size
Appearance

Your choices stick across every tutorial on this device.

Warning: Adobe has removed 3D from Photoshop. The 3D workspace used in this tutorial began to be retired in Photoshop 22.5 (August 2021), and the legacy 3D feature set was removed completely in July 2024. You cannot follow these steps in current versions of Photoshop. This tutorial is kept as a record of how the technique worked. For 3D work today, Adobe points people to Substance 3D.

Learn this fantastic technique to easily animate photos in Photoshop!

In this tutorial, we will cover Photoshop’s 3D and animation features to create a 2.5D parallax effect to make your photos come to life!

The amazing photo used in this tutorial is by Marc Rafanell Lopez. You can download the same photo by clicking here, but you can also use any photo to follow along!

Are you ready to start?

Use Select Subject to Create the Selection

To animate any photo in Photoshop, start by separating the image into two layers: the Foreground (consists of the two male jumpers) and their background.

To do so, go to Select > Subject and allow Photoshop to utilize Adobe Sensei, an innovative Artificial Intelligence (AI), to detect the subjects in the image and create a selection around it.

Select menu open on Subject so Photoshop can find the two jumpers

If you are dealing with an older version of Photoshop, you can still use the Quick Selection tool to create a selection around the subject.

Refine the Selection with the Quick Mask Mode

Once you make a good selection, press the Q key on your keyboard to enter into Quick Mask mode. This mode will place a red overlay on parts of your image that is outside the current selection.

With The Brush tool, you can paint with white (#ffffff) to add to the selection and paint with black (#000000) to subtract from the selection.

Quick Mask mode with a red overlay covering everything outside the selection

PRO TIP: Press the X key on your keyboard to swap the Foreground and the Background color!

For this part, it’s okay to create a loose selection. Since we are working non-destructively, you can always come back to this later and further refine it.

Once you are done selecting, press the Q key on your keyboard to exit the Quick Mask mode and reveal your new selection.

Next, duplicate the current by clicking-and-dragging the layer to the New Layer icon, which is at the bottom-right of the Layers panel.

Layer dragged onto the New Layer icon to duplicate it

Click on the Layer Mask icon to add a layer mask to the duplicated layer and so it will only show the jumping subjects.

Layer Mask icon clicked so the copy shows only the jumping subjects

Then, go to Select > Modify > Expand to make the selection larger. 

Select menu with Modify and Expand chosen to grow the selection

On the Expand Selection Window, set the Expand By value to 4 pixels.

Then press OK.

Expand Selection window with the Expand By value set to 4 pixels

If you zoom in, you will see how the edges of the selection are now 4 pixels farther from the previous setting.

If there are still areas that are part of the Foreground but are not selected, use the Lasso tool and while holding the Shift key, click-and-drag around the area to add it to your selection.

Lasso tool with Shift held down to add a missed area to the selection

Duplicate the background by clicking-and-dragging it over to the New Layer icon.

Background layer dragged onto the New Layer icon for a second copy

Use Content-Aware Fill to Create a Clean Background Plate

On the duplicated copy, go to Edit > Content-Aware Fill. The Content-Aware technology will then fill the pixels where the subjects used to be. 

The green overlay shows the area where the Content-Aware technology is sampling pixels from, and for this part, it’s doing an excellent job. Although it is not perfect, it is entirely adjustable.

Press Ctrl D (Windows) or Command D (MacOS) to deselect as I focus on the next part, where I will show you how to fix the inconsistencies in the background pixels.

With the generated pixels on the new layer selected, hold the Shift key as you select the bottom layer as well.

Then, press Ctrl E (Windows) or Command E (MacOS) to merge both selected layers into one single layer.

Use the Clone Stamp Tool To Refine The Background

Zoom into a part of the image that needs refinement. Using the Clone Stamp tool, I can copy selected pixels and paste it onto another. Do this by holding the Alt (Windows) or Option (MacOS) key on your keyboard to determine the sample source..

Clone Stamp tool setting a sample source with the Alt key held down

Once that is set, you will see how you are painting with the pixels taken from the sample source.

Take your time to refine this area, and you can always reset your sample source by pressing Alt (Windows) or Option (MacOS).

Then, use the Rectangular Marquee tool to select the stacked wood panels and press Ctrl J (Windows) or Command J (MacOS).

Rectangular Marquee drawn around the stacked wood panels before copying them

Press Ctrl T (Window) or Command T (MacOS) to transform the copied selection and move it to the side. 

Right-click and select Flip Horizontal.

Then, right-click again to select Distort and adjust the selection accordingly to match with the background.

Press the Enter (Windows) or Return (MacOS) key to exit the Transform mode.

Copied panels flipped horizontally and distorted to line up with the background

Since the man is part of the selection, use the Clone Stamp tool once again to paint pixels from a Sample Source and clean the area. 

Clone Stamp used again to paint away what is left of the man

You can also take this time to fill the area in between the stacked wood panels to make it consistent.

You can see another significant area with an inconsistent pattern on the right side of the stacked wood panels, and you can also fix this with the Clone Stamp tool.

Once you have finished these crucial steps, you can then move on to combining them into one single layer. 

Do that by holding the Shift key as you select the current layer and the Background copy, and then press Ctrl E (Windows) or Command E (MacOS) to merge them.

Renaming this layer to “Clean Background.”

Merged layer renamed Clean Background in the Layers panel

Apply a Blur to the Background

Go to Filter > Blur Gallery > Tilt-Shift. 

Then, click-and-drag the reference point downwards.

Click-and-drag the bottom handle as well to expand the area and have the blurring start from the center to the top area of the image.

On the Blur tools, set the Blur value to 6px. Immediately you will notice that any of the imperfections in the background can be easily concealed with the added blur.

Press OK to add the changes.

Tilt-Shift blur set to 6 pixels to hide leftover flaws in the plate

Convert the Background and Foreground Into 3D Layers

Enable the Foreground layer once again, and you should see that despite the changes applied, the image still looks realistic.

To avoid further confusion, I have renamed the Foreground layer to “Jumping.”

To animate any photo in Photoshop, create 3D layers out of the two layers. For this tutorial, it’s the Jumping and the Clean Background layers.

Start by selecting the Clean Background and disabling the Jumping layer.

Then go to 3D > New Mesh from Layer > Postcard, and this will convert your current layer into a 3D Postcard. A Postcard means a plane that you can rotate around in 3D space.

3D menu with New Mesh from Layer and Postcard chosen

With your Move tool selected, you will see 3D tools at the bottom-left of your document window and use these tools to rotate the 3D camera inside of Photoshop. 

Select the Move tool

Disable the original Background layer and use the tools to get yourself familiarized with their functions and features. If you want to return to the default view, double-click on the Clean Background thumbnail as this will take you to the 3D panel, and select Default Camera.

3D panel open with Default Camera selected to get back to the standard view

Go back to the Layers panel and enable the Jumping layer to convert it to a 3D Postcard as well. Again, go to 3D > New Mesh from Layers > Postcard.

At the moment, both of the 3D cameras will not function at the same time because both are in two different 3D layers. For the maximum range of capabilities, you need to combine them into one single layer. 

Go to the Layers panel and select the Jumping layer.

While holding the Shift key, select the Clean Background as well and press Ctrl E (Windows) or Command E (MacOS) to merge them.

NOTE: The tiny cube icon at the corner of your layer means that the layer is in 3D. If you double-click on it, it will take you to the 3D panel.

Jumping and Clean Background merged into one 3D layer marked by a cube icon

With the Move tool selected, use the 3D tools at the bottom to control the camera. You may want to try to click on any 3D layer, and a cube with arrows will appear in front of it, then click-and-drag the white cube to scale up the 3D layer.

White cube dragged in the document window to scale the 3D layer up

How to Animate the Foreground and Background with the Timeline Panel

Finally, the real trick on how to animate any photo in Photoshop!

Go to Windows > Timeline. This feature allows us to create a timeline with images and 3D objects on Photoshop.

Windows menu open on Timeline to bring up the animation panel

On the center of the timeline panel, click on the Create Video Timeline button. If you can’t see it, click on the down-pointing arrow, and on the drop-down menu, select Create Video Timeline.

Create Video Timeline button sitting in the middle of the Timeline panel

Click on the down-pointing arrows on each of the two layers to release the elements and keyframes that will be essential during the following steps.

If you use the Orbit 3D Camera to see your 3D layers in another perspective, you will see the distance between your Jumping layer and the Clean Background. By adding the 3D Camera Position keyframe,

Orbit 3D Camera view revealing the gap between the subject and the background
3D Camera Position keyframe added along the Timeline track

Then, place the Playhead at any position in the Timeline,

Place the playhead at any position in the Timeline

And start rotating the camera, Photoshop will add a second keyframe.

If you scroll up the Timeline and press the Play button, Photoshop fills in the timeline with a switch of the 3D camera position from the original keyframe to the 2nd keyframe—and this is how you will be animating your 3D images.

To delete a keyframe, just right-click on a keyframe and select Delete. I will be deleting both the original keyframe and the 2nd keyframe to clear my timeline.

Right-click menu on a keyframe with Delete chosen to clear the timeline

To do a 2-second animation, drag the Playhead to the beginning of the timeline. Then, click-and-drag the end of the Timeline slider on the 2-second mark to set it as the length of the animation.

On the 3D panel, click on the Default Camera and then click on Clean Background Mesh as well.

3D panel with the Default Camera and the Clean Background Mesh selected
Timeline slider pulled to the two second mark to set the animation length

Head over to your document window, then click-and-drag on the white cube to scale uniformly and expand the view of the background.

White cube dragged to scale the background mesh up uniformly

Next, click-and-drag on the blue point to scale back the background until it fills the canvas. If you’re having a hard time seeing the difference, double-click on the hand tool to fit the image to screen.

Blue point dragged to scale the background back until it fills the canvas

Use the Orbit 3D Camera will allow you to see the broader distance between the Jumping Mesh and the Clean Background Mesh.

Undo the recent changes by pressing Ctrl Z (Windows) or Command Z (MacOS) and further widen the scale of Clean Background Mesh.

Under the properties of the Clean Background Mesh, click on the 3D Camera Position.

Scroll down along the elements. Under 3D Meshes, enable the Stopwatch for both of the Clean Background and Jumping. This will create keyframes for the position of these meshes.

Stopwatch turned on for both meshes so their positions get keyframes

Now, click-and-drag the Playhead into the 2-second mark and use the 3D Orbit Camera to reposition it. 

You may also select the Jumping Mesh, pull it forward to make it larger, and bring it down.

Once you hit the Play button, the Jumping subject will move through the 3D space!

Playhead at the two second mark after the jumping mesh is pulled forward

For a more dramatic shot, reposition the perspective with the 3D Orbit Camera or scale the Clean Background Mesh to a smaller perspective.

Once you’re ready to save the video, simply click on the Flyout menu and select Render Video. After that, share your work on your social media and tag me at #PhotoshopTrainingChannel!

Flyout menu open with Render Video ready to save the animation

And that’s how to animate any photo in Photoshop! I hope this tutorial has been helpful for you and your future projects.

Pro Training

Selections and Masking Mastery

Complete course includes 2.5 hours of step-by-step lessons, 6 structured modules, downloadable practice files, and custom Photoshop brushes. Everything you need to master selections and masks in one place.

View the Course

Jesús Ramirez

About the author

Jesús Ramirez

Jesús Ramirez is a graphic designer and the founder of the Photoshop Training Channel, which he started in 2012 and has grown past two million YouTube subscribers. He has taught at Adobe MAX, Adobe Summit, and Photoshop World, teaches courses for CreativeLive and Pluralsight, and was one of five artists chosen for Adobe Stock's Make a Masterpiece campaign. His Photoshop templates shipped inside Photoshop CC 2018.

More about Jesús Ramirez

Similar Posts