Creating a Complex Animation

Free Photoshop Tutorial

Dive into the depth of Photoshop by exploring our tutorial that covers topics such as creating custom animations using clipping masks, manually animating an object, utilizing Unify Layer options, and making edits applicable to all frames.

This exercise is excerpted from Noble Desktop’s past Photoshop Animated GIFs training materials and is compatible with Photoshop updates through 2019. To learn current skills in Photoshop, check out our Photoshop Bootcamp and graphic design classes in NYC and live online.

Topics covered in this Photoshop tutorial:

Using clipping masks to create custom animations, Manually animating an object, Using Unify Layer options, Making edits that apply to all frames

Exercise Preview

ex prev science expo

Exercise Overview

In this exercise, we’ll discover a neat technique to create a “revealing” animation.

Adobe Photoshop Bootcamp: Live & Hands-on, In NYC or Online, Learn From Experts, Free Retake, Small Class Sizes,  1-on-1 Bonus Training. Named a Top Bootcamp by Forbes, Fortune, & Time Out. Noble Desktop. Learn More.

Previewing the Finished Animation

Let’s start by previewing how our finished file will look at the end of this exercise.

  1. Launch any web browser (Chrome, Safari, Firefox, etc.).

  2. Press Cmd–O (Mac) or Ctrl–O (Windows) and navigate to Desktop > Class Files > Animated GIFs Class > Science Expo.

  3. Double–click on science-expo.gif.

    Watch the animation loop a few times to get a feel for what we’ll be working towards. We’re going to bring in each piece of information one at a time. To start with, we’ll have the The 5th Annual text move down into view, followed by the word SCIENCE fading in. For the word EXPO we’ll do a more complicated animation.

Getting Started

  1. In Photoshop, go to File > Open.

  2. Navigate into Desktop > Class Files > Animated GIFs Class > Science Expo and open science-expo.psd.

  3. Go to File > Save As.

  4. Name the file yourname-science-expo.psd and navigate into Class Files > Animated GIFs Class > Science Expo.

  5. Click Save.

Adding Clipping Masks for Custom Animations

The file has all of the text and graphics we’ll be using for this banner. The text has been rasterized so you don’t have to worry about installing the same font we used. All the tricks we’ll be looking at work just as well with live text.

Most of our animation will be moving and fading things in. But for the word EXPO, we want to do something a little fancier. We will make it look like each letter is being drawn on the screen by revealing each letter in different directions.

  1. In the Layers panel, notice the E, X, and P have been separated onto their own layers. (Don’t worry about the letter O—we’ll talk about it later.)

    To create the revealing effect you saw earlier, we will be covering up each letter with a green rectangle, and then moving the rectangle out of the way to reveal the letter. It’s easiest to have all of our elements in place before we start animating, so let’s create those green rectangles before we do anything else.

  2. In the Layers panel, select the E layer.

  3. Choose the Rectangle tool rectangle tool.

  4. In the Options bar at the top, click on the color picker next to Fill.

  5. In the panel that opens, click on the Color Picker color picker in the upper right-hand corner.

  6. Enter #79C143 for the color. This matches the green background we already have.

  7. Click OK.

  8. In the document, draw a rectangle around the letter E so that it’s fully covered. It’s OK if the rectangle covers up some of the other text as well; we’ll fix that next.

  9. In the Layers panel, make sure the Rectangle 1 layer is directly above the E layer.

  10. With the Rectangle 1 layer still selected, go into the Layers panel menu panel menu and choose Create Clipping Mask.

  11. The Rectangle 1 layer is now clipped off where the letter E layer ends. This means the shape will only cover up the E layer below it, no matter how much we move the rectangle around our document. To indicate this, the layers will look as shown below:

    clipped layers

  12. To keep things organized, select the Rectangle 1 layer and the E layer.

  13. Go to Layer > Group Layers.

  14. Double–click Group 1, and rename the layer group E.

  15. Let’s do the same thing for the letter P. Select the P layer.

  16. In the document, draw a rectangle around the letter P so that it’s fully covered.

  17. In the Layers panel, make sure the new Rectangle 2 layer is directly above the P layer.

  18. There’s another way to create a clipping mask. Hold Option (Mac) or Alt (Windows) and mouse over the line between the Rectangle 2 and P layers until you see the icon shown below, then click:

    clipping layers

    After you release the mouse, you should see that the layers become clipped.

  19. To keep things organized, select the Rectangle 2 layer and the P layer.

  20. As a shortcut to group the two layers, press Cmd–G (Mac) or Ctrl–G (Windows).

  21. Double–click Group 1, and rename the layer group P.

    The letter X will be a little different. We are going to create two rectangles, one that we’ll animate moving up, and one that we’ll animate moving down.

  22. Select the X layer.

  23. Draw a rectangle around the left half of the letter X in the document, so that only the left side of the X is completely covered.

  24. Draw another rectangle around the right half of the letter X in the document, so that the right side of the X is also covered. It’s okay if the two rectangles overlap just a little bit.

  25. In the Layers panel, make sure the Rectangle 3 and Rectangle 4 layers are directly above the X layer.

  26. In order to create the clipping mask, select the Rectangle 3 and Rectangle 4 layers.

  27. The technique we just used only works for single layers. We want to clip multiple layers, so we’ll need to use the menu this time. Go into the Layers panel menu panel menu and choose Create Clipping Mask.

  28. To keep things organized, select the Rectangle 3, Rectangle 4, and X layers.

  29. Press Cmd–G (Mac) or Ctrl–G (Windows) to group the three layers.

  30. Double–click Group 1, and rename the layer group X.

    The animation will start with a blank green surface, and then we’ll build everything up from there. However, we want our first frame to have all the information on it. That way, if the animation does not work on a website and it’s stuck on the first frame, the info will still be there for people to see. Right now, the E, X, and P letters are hidden by their respective green rectangles. We’ll have to reveal them so they are showing on the first frame when we create our animation.

  31. In the Layers panel, expand the E, X, and P layer groups.

  32. Hide all the green rectangle layers by clicking the eye eye hide show icon to the left of each.

  33. Feel free to collapse the layer groups again if you’d like.

Creating a Frame Animation

Now that we have all of the text and graphics we’ll be using for this banner, we can start animating.

  1. In the Timeline panel, click the Create Frame Animation button. If instead there is a button that says Create Video Timeline, click the arrow timeline down arrow to the right of Create Video Timeline and choose Create Frame Animation. Then click the Create Frame Animation button.

  2. At the bottom of the Timeline panel, click the Duplicates selected frames button new button.

  3. In the Timeline panel, make sure frame 2 is selected.

  4. In the Layers panel, hide all the layers EXCEPT for The 5th Annual and green bg by clicking the eye eye hide show icon to the left of each.

    TIP: You can drag through the eye column (instead of having to click each eye individually) to make hiding or showing multiple layers faster.

  5. With frame 2 still selected, let’s set the timing. We want this to be a little faster and smoother than our previous animations. Click 0 sec. at the bottom of frame 2, and from the menu that appears, choose Other.

  6. Set the Delay to .08 seconds and click OK.

  7. With frame 2 still selected, click the Duplicates selected frames button new button.

    Frame 3 is the correct ending position for this bit of animation. We’re going to work backwards and change the starting position of the text on frame 2.

  8. Select frame 2.

  9. In the Layers panel, select the The 5th Annual layer.

  10. With the Move tool move tool, hold Shift and drag the The 5th Annual text up until it’s completely off the canvas.

  11. Select frames 2 and 3.

  12. At the bottom of the Timeline panel, click the Tweens animation frames button tween button.

  13. In the Tween dialog, set:

    • Frames to Add: 3
    • Parameters: Keep everything checked.

    Click OK.

  14. Now we need to bring in the word SCIENCE. Select frame 6 and click the Duplicates selected frames button new button.

  15. With frame 7 selected, in the Layers panel show the SCIENCE layer.

  16. In the Timeline panel, select frames 6 and 7.

  17. At the bottom of the Timeline panel, click the Tweens animation frames button tween button.

  18. In the Tween dialog, set:

    • Frames to Add: 3
    • Parameters: Keep everything checked.

    Click OK.

  19. At the bottom left of the Timeline panel, make sure looping is set to Forever.

Animating Letters

We’ll move around the green rectangles we created earlier to hide or reveal the E, X, and P letters. We clipped the green rectangles to their respective letters so they won’t accidentally cover up other parts of the animation.

  1. In the Timeline panel, select frame 10.

  2. In the Layers panel, show the E, X, and P folders by clicking the blank box to the left of each.

  3. If they aren’t already, expand the folders for the letters E, X, and P by clicking the arrow layer group arrow next to the folder icon for each so you can see the layers inside.

  4. Show the green rectangle layers within each of those folders.

  5. The letters EXP should not be visible in your document because the green rectangles are covering them up. We’re going to reveal them next. If any of the letters are visible, make sure you have shown all the green rectangle layers in the Layers panel.

  6. With frame 10 still selected, click the Duplicates selected frames button new button.

  7. Select frame 11. Now, we can decide how we want our letters to be revealed.

  8. In the Layers panel, select the Rectangle 1 layer in the E folder.

  9. With the Move tool move tool, move the green rectangle to the right until the letter E has been entirely revealed in your document.

    TIP: You can use the Arrow keys to nudge a layer (the Move tool must be selected).

  10. There are two rectangles for the letter X. Select Rectangle 3 in the Layers panel.

  11. With the Move tool move tool, move it up until one half of the X has been revealed.

  12. Select Rectangle 4 in the Layers panel.

  13. With the Move tool move tool, move it down so that the rest of the X has been revealed.

  14. In the Layers panel, select the Rectangle 2 layer in the P folder.

  15. With the Move tool move tool, move it to the right until the letter P has been entirely revealed. Things should now be set up so that frame 11 says EXP and frame 10 does not show those letters at all.

  16. Ready to see how it animates? Select frames 10 and 11.

  17. At the bottom of the Timeline panel, click the Tweens animation frames button tween button.

  18. In the Tween dialog, set:

    • Frames to Add: 11
    • Parameters: Keep everything checked.

    Click OK.

  19. Check out how things are looking so far by clicking the Play button play button. Click the Stop button stop button when you’re done.

Animating the O

Now it’s time to animate the O. We want the O to be revealed in a circle, which we can’t do with a simple tween animation. Tweening between locations will only move in a straight line. What we’ve done instead is broken the O into 12 different parts, which we will reveal one at a time with a more manual type of animating.

NOTE: Unfortunately, there’s no easy way to split up the O evenly. Here’s how we did it: We first turned off anti-aliasing in the Options bar. We then split the shape in half by selecting half of it, then choosing Layer > New > Layer Via Cut. That created two layers. We then split each of those layers in half again using the same method. We then split each of those four layers into three more segments, etc. You get the idea! Afterwards, we organized the layers and labeled them so we would remember the order. This was all rather tedious, so that’s why we’ve done it for you.

  1. In the Layers panel, expand the O folder.

  2. Notice there are 12 numbered layers in there. We are going to show the entire letter O in all our frames first, then hide pieces of the O in each of our frames so a bit of it is revealed in each frame.

  3. In the Timeline panel, click on frame 11, then hold Shift and click on frame 22 to select frames 11–22.

  4. In the Layers panel, show the O folder. The O is now entirely visible in all our frames. Next we’ll start hiding parts of the O in each of our frames.

  5. In the Timeline panel, select frame 11.

  6. In the Layers panel, hide layers O 2 through O 12. You can click each eye eye hide show icon or drag through the column. Only O 1 should be showing when you’re finished!

  7. Select frame 12.

  8. Hide layers O 3 through O 12 so only O 1 and O 2 are showing.

  9. Select frame 13.

  10. Hide layers O 4 through O 12 so only O 1, O 2, and O 3 are showing.

  11. Continue with frames 14 through 22, revealing one more layer for each frame. It’s a bit tedious, but it gives a nice result.

    Frame Which Layers to Hide
    Frame 14 O 5 through O 12
    Frame 15 O 6 through O 12
    Frame 16 O 7 through O 12
    Frame 17 O 8 through O 12
    Frame 18 O 9 through O 12
    Frame 19 O 10 through O 12
    Frame 20 O 11 through O 12
    Frame 21 Only O 12
    Frame 22 Nothing—all O layers should be showing
  12. To declutter the Layers panel, collapse all of the open folders.

  13. Let’s add a slight pause before EXPO is revealed. Select frame 10.

  14. Click 0.08 sec. at the bottom of the frame, and from the menu choose 0.2.

  15. Preview by clicking the Play button play button. Looks cool so far! Click the Stop button stop button when you’re done.

  16. Press Cmd–S (Mac) or Ctrl–S (Windows) to save our work so far.

Animating Graphics

Looks cool so far. We just have a little more information to add.

  1. In the Timeline panel, select frame 22 and click Duplicates selected frames new button.

  2. With frame 23 selected, go to the Layers panel and show the last three layers we want to appear in the animation:

    • The Armory May 8–9
    • electron
    • atom
  3. We’ll make the animation look a little nicer by fading in those last three layers. Select frames 22 and 23.

  4. At the bottom of the Timeline panel, click the Tweens animation frames button tween button.

  5. In the Tween dialog, set:

    • Frames to Add: 3
    • Parameters: Keep everything checked.

    Click OK.

    The last thing we want to do is animate the electron so it’s moving around the atom following the ellipse. This is a little tricky to do. So far, we’ve been using Tween to animate an object moving. Unfortunately, Tween only works if the object is moving in a straight line. Because we want our object to move following the ellipse, we will have to adjust the position manually 1 frame at a time.

    However, just because Tween is not able to give us the final results we want, doesn’t mean we can’t utilize it to start the process. We want the electron to be halfway around the ellipse after 8 frames, so let’s do some tweening to show us how far it should move in each frame.

  6. Select frame 26 and click the Duplicates selected frames button new button.

  7. With frame 27 selected, in the Layers panel select the electron layer.

  8. With the Move tool move tool, move the electron so that it’s halfway around the ellipse:

    electron halfway

  9. Select frames 26 and 27.

  10. At the bottom of the Timeline panel, click the Tweens animation frames button tween button.

  11. In the Tween dialog, set:

    • Frames to Add: 7
    • Parameters: Keep everything checked.

    Click OK.

  12. Now we have to go back to all of those added frames and move the electron so it’s following along the path of the ellipse. Select frame 27.

  13. Notice our electron is slightly to the left of its original position. We want to move the electron down and slightly to the right so it’s on the line of the ellipse.

  14. With the Move tool move tool, move the electron so it’s on the line of the ellipse.

  15. Select frame 28.

  16. Move the electron down and slightly to the right so it’s on the line of the ellipse.

  17. Continue this process for the remaining frames. Remember that the electron should be a quarter of the way around the ellipse at frame 30. You might not see the electron at first because it’s hiding in the nucleus of the atom, but if you move it, you will see that it’s there.

  18. We’ll repeat the same steps for the second half of the ellipse. Select frame 34, and click the Duplicates selected frames button new button.

  19. With frame 35 selected, move the electron back to its starting position.

  20. Select frames 34 and 35.

  21. At the bottom of the Timeline panel, click the Tweens animation frames button tween button.

  22. In the Tween dialog, set:

    • Frames to Add: 7
    • Parameters: Keep everything checked.

    Click OK.

  23. Go through frames 35 to 41, and move the electron up and slightly to the left so it’s on the line of the ellipse in each frame.

  24. We don’t actually need frame 42. We only added it so we could get a good tween animation. Select frame 42 and at the bottom of the Timeline panel click the trash icon trash button.

  25. In the dialog that appears, click Yes.

  26. Test out the animation to see if the electron’s journey looks relatively smooth and adjust any individual frames as needed.

  27. We want the electron to make one more journey around, but it would be a pain to have to repeat all those steps. Luckily, we don’t have to. Select frames 26–41.

  28. Click the Duplicates selected frames button new button. Photoshop will make a copy of all the selected frames at the end of our animation. You should end up with a total of 57 frames.

Making Changes

Let’s say we need to change something about our GIF after we’ve already set everything up. This can get a little complicated. The main thing to remember is that Photoshop can animate a layer’s position, visibility, and layer style.

If you need to change anything other than one of those three things, you can make the changes to the layer anywhere and it will apply throughout the animation. But if you want to change the position, visibility, or layer style, you have to make sure it applies to all the frames, and not just the one you have selected.

  1. First, let’s make a simple change. We need to change some of the text in our file. Select any frame where May 8–9 is visible, like frame 57.

  2. With the Type tool type tool, click on the date on the image and change it to read May 15–16 instead.

  3. To commit the change, click the checkbox checkbox near the right side of the Options bar.

  4. Play play button through the animation to notice the change was made throughout. Easy!

    Because we weren’t making a change to the layer’s position, visibility, or layer style all we had to do was make the change and it applied throughout our animation.

    Now we’re going to take that same text and move it further up the document. This is more complicated, because layer position is something that Photoshop can animate. We’ll look at two different techniques to deal with this.

  5. Select any frame where The Armory May 15–16 is fully visible in the document (frame 26 or later).

  6. In the Layers panel, select the The Armory May 15–16 layer.

  7. Towards the top of the Layers panel, next to Unify, click the Unify layer position button unify layer position button.

    By choosing Unify layer position, whenever we move this particular layer, it will move to the same position throughout the animation. Otherwise, we would only be moving the layer in one frame.

  8. Using the Move tool move tool, move the text up so it’s sitting just below the word EXPO.

  9. Click Play play button and notice that the text remains in the same new location throughout. Click Stop stop button when done previewing the animation.

    NOTE: The Unify layer visibility button unify layer visibility button and Unify layer style button unify layer style button work the same way as the Unify layer position button unify layer position button. Use the Unify layer visibility button unify layer visibility button when you want to change the opacity of a layer throughout an animation. Use the Unify layer style button unify layer style button when you want to change the effect of a layer throughout an animation.

  10. Let’s try a different method for changing an animated element. Select frame 1.
  11. In the Layers panel, select the The 5th Annual layer.

  12. Towards the top of the Layers panel, notice that Propagate Frame 1 is checked on. This means that whatever changes are made on frame 1 for this layer will happen to the entire animation.

    NOTE: Be careful when editing frame 1 in your own animations. Even if you made sure to check Propagate Frame 1, this can be a little glitchy, so always check to make sure it has made the change to all frames, and use the Unify buttons if it doesn’t. In some cases you may also want to change frame 1 without changing the rest of the animation (as we’ve done in previous exercises), in which case you would need to uncheck Propagate Frame 1 first.

  13. With the The 5th Annual layer selected, set its Opacity to 70%.

  14. Click Play play button and notice that the opacity change has been made throughout.

  15. Press Cmd–S (Mac) or Ctrl–S (Windows) to save the working file.

Saving for Web

  1. Go to File > Export > Save for Web (Legacy).

  2. Click the 2-Up tab at the top.

  3. From the Preset menu, choose GIF 128 No Dither and set Colors to 8.

    NOTE: These are our recommended settings for this file. Feel free to experiment to see if you can reduce the file size further. Remember to step through the entire animation to make sure all the frames look good.

  4. Click Save.

  5. Name the file: yourname-science-expo.gif

  6. Navigate into Desktop > Class Files > Animated GIFs Class > Science Expo and click Save.

  7. Feel free to preview the GIF you just created by opening it in a browser.

How to Learn Photoshop

Master Photoshop, the industry-standard application for photo retouching, color correction, and more, with hands-on training.

Yelp Facebook LinkedIn YouTube Twitter Instagram