Creating a Video Timeline

Free Photoshop Tutorial

Discover how to create an engaging animated GIF using a video timeline in Photoshop, covering key topics such as using keyframes to animate properties, moving and editing keyframes in the timeline, and previewing the finished animation.

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 keyframes to animate the Position property, Animating the foods into & out of the box, Moving the outermost foods along a curve instead of a line, Moving, editing, & offsetting keyframes in the Timeline, Copy/pasting keyframe values

Exercise Preview

ex prev meal in a box

Exercise Overview

In previous exercises, you created several different frame animations where the Timeline panel displays what the image looks like in each frame. In this exercise, you’ll learn how to create an animated GIF using a video timeline. In this kind of animation, there’s no need to duplicate a frame or create tweens—all you need to do to get your layers animating is to add keyframes at key moments, and Photoshop will automatically fill in the blanks.

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.

As you create your first video timeline, you’ll learn how to add, edit, and copy/paste keyframes, navigate through time using the playhead, and much 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 > Meal in a Box.

  3. Double–click on meal-in-a-box.gif.

    Watch the animation loop a few times to get a feel for what we’ll be working towards. You’ll see that each of the 3 foods are initially positioned in an arc above the Meal in a Box, then they drop into the box. Each item moves separately, starting with the apple on the left. After the foods spend time chilling out in the box, they return to their starting positions before the animation loops.

Getting Started

  1. In Photoshop, go to File > Open.

  2. Navigate into Desktop > Class Files > Animated GIFs Class > Meal in a Box and open meal-in-a-box.psd.

  3. Go to File > Save As.

  4. Name the file yourname-meal-in-a-box.psd and navigate into Class Files > Animated GIFs Class > Meal in a Box.

  5. Click Save.

Introducing Photoshop’s Video Timeline

A video timeline shows what each element in the file is doing for the duration of the animation, which is similar to video editing software like After Effects and Premiere Pro. Because it shows all the layers instead of static snapshots of what the frames look like, this approach is quite different than the frame-by-frame approach we’ve been using. Frame animations are great for simple GIFs that hide/show elements, but they aren’t as easy to work with when you want to create more complex animations. Let’s dive in!

  1. The button in the middle of the Timeline panel should say Create Frame Animation. We don’t want to create that type of animation, so click the arrow timeline down arrow to the right of Create Frame Animation and choose Create Video Timeline.

  2. Now click the Create Video Timeline button.

  3. At the top left of the Timeline panel click the Gear icon gear icon (for Set playback options) and do the following:

    • Set Resolution to 100%.
    • Check on Loop Playback if it isn’t already.
    • Click the Gear icon gear icon again to close the options.
  4. At the top right of the Timeline panel, go into the panel menu panel menu and choose Set Timeline Frame Rate.

  5. Make sure it says 30 fps. (Change it if needed, then click OK.)

  6. Go into the Timeline panel menu panel menu once more and choose Panel Options.

  7. Make sure Timeline Units is set to Frame Number and click OK.

    At the bottom left of the Timeline the current time display now shows frames (0) instead of timecode (0:00:00:00), as shown: timeline frame display.

  8. In the Timeline, notice that all the layers in this file are visible here.

    By default when working on a video timeline, the Timeline panel shows all of the layers in the document. We only want to animate the 3 foods, so our Timeline is too cluttered at the moment. Let’s hide most of our layers here in the Timeline.

  9. In either the Timeline or Layers panel, click on the fruits layer bar or layer name to select it. (It will be selected in both panels.)

  10. Shift–click on the vegetables to select all 3 food layers.

  11. Go into the Timeline panel menu panel menu and choose Show > Set Favorite Clips.

    Now these 3 layers should be the only ones visible in the Timeline. We won’t bring them all back, but if we wanted to, we’d choose Show > All Clips.

  12. On the left-hand side of the Timeline to the left of the fruits layer name, click the arrow expand animatable properties to expand into a list of properties that can be animated.

    You can only animate changes in a layer’s Position, Opacity, or Style in a video timeline. We’ll only animate each food layer’s Position property.

  13. Open up the grains and vegetables layers as well.

  14. Feel free resize the Timeline panel (make it bigger or smaller) by dragging the top border. If you can no longer see the entire graphic, zoom in/out as needed (using Command (Mac) or Ctrl (Windows) and either the Plus or Minus keys).

Using Keyframes to Animate the Position Property

Currently the 3 food items are arranged in a straight line that resembles an emoji grocery list. To make the initial layout look more visually appealing, let’s reposition them to make an arc above the box with even amounts of spacing between each.

  1. The 3 animatable properties have a little stopwatch stopwatch directly to their left. Under fruits, click the stopwatch stopwatch next to Position.

  2. In the Timeline at frame 0 under the fruits layer and to the right of the Position property, notice the keyframe keyframe middle. A keyframe indicates the beginning/end of a transition of the property it’s adjacent to (Position in this case).

    Using the Stopwatch

    Turning on the stopwatch next to a property allows that property to animate. Click it only once. After that, changing the value of the property automatically creates a new keyframe (or updates the current keyframe). Beware, clicking it again (when it is activated stopwatch activated) will make all the keyframes for that property disappear!

  3. Use the stopwatch stopwatch to add Position property keyframes for the grains and vegetables layers.

  4. Because each layer already has keyframes, the Position values will automatically update as we rearrange the food to look nicer. In the Tools panel, make sure the Move tool move tool is selected.

  5. At the far left of the Options bar, check on Auto-Select. This will allow us to select layers by clicking on them.

  6. Make sure the menu next to Auto-Select says Layer.

  7. One by one, drag each food item and arrange them in an arc with nice spacing in between them, similar to the screenshot below (we outlined each food and the box so you can see them better):

    arrange foods in arc

  8. At the top of the Timeline panel, notice there is a blue playhead current time indicator (called the Current Time Indicator).

  9. All you need to do to make a transition is create keyframes at key moments in an animation sequence, and Photoshop will create in-between values for you. Because we want our move to last exactly 6 frames, drag the playhead to frame 6. (Watch the current time display at the bottom left of the Timeline to make sure it says 6.)

  10. Because each layer already has a keyframe, moving these layers will automatically create a new keyframe at the current time. Drag each layer so they’re nestled inside the box, similar to the image below:

    arrange foods in box

  11. In the Timeline panel, notice a new set of keyframes keyframe end (one per layer) were automatically added at frame 6. A transition takes place between two keyframes of the same property.

    Why the Two Keyframes Look Different

    When we added the second keyframe to each food layer, the appearance of both keyframes changed from solid keyframe middle to two-tone. In Photoshop, keyframes appear two-toned if they’re the first or last keyframes on a property. The first keyframe on a property appears dark-to-light keyframe start and the last keyframe appears light-to-dark keyframe end. Keyframes appear solid if they’re middle keyframes or if they’re the only keyframe assigned to a property. Selected keyframes are yellow.

  12. Go back to frame 0 and scrub forward with the playhead. Cool, they’re moving!

Moving Keyframes in the Timeline

Let’s get the viewers’ mouths watering from looking at those floating foods before they drop into the box. We think half a second is enough time. At our frame rate of 30 fps, that’s 15 frames. We can move our keyframes so the animation starts at the 15 frame mark.

In the frame animation timeline we used in the previous exercises, editing a transition is not that easy (because you have to undo your work and redo it with new values). Let’s see how easy it is to edit an animation when working in a video timeline!

  1. At the bottom of the Timeline is a slider timeline zoom slider that controls the timeline’s zoom. Feel free to adjust this whenever you need to.

  2. To go to frame 15, drag the blue playhead or go to the bottom left of the Timeline panel and drag the frame number.

  3. Under the fruits layer, click on the word Position. Clicking on a property name selects all of the keyframes on that property (currently two).

  4. Under the vegetables layer, Shift–click on the word Position. All 6 Position property keyframes should be selected (yellow).

    TIP: You could also drag a selection box that encompasses all 6 keyframes.

  5. Grab any keyframe and drag them to the right so the first keyframes keyframe start align with frame 15. (They should snap to the playhead’s position when you get close.)

  6. Click in a blank area of the canvas to deselect the layers.

Moving the Outermost Foods Along a Curve

  1. Slowly scrub through the animation with the playhead, paying close attention to how the apple moves.

    By default, objects in Photoshop take the “path of least resistance”—which in this case is a diagonal line. That’s why around halfway through its animation the apple looks too close to the edges of the box, similar to the image below:

    apple too close to box edge

  2. Movement along a diagonal isn’t all that interesting or realistic, so let’s fix the issue by creating new keyframes that make the apple on the left (and for consistency, the carrot on the right) move along a curved path. Move the playhead to frame 18, halfway through the animation.

  3. One at a time, move the leftmost and rightmost foods a bit inward so you get a result similar to the one shown below on the right:

    • Click on the apple and hold down Shift to constrain its movement to a straight line. Drag rightward until it looks nice.
    • Do the same for the carrot, moving it leftward by around the same amount.
    • Notice how Photoshop automatically added new solid keyframes keyframe middle because the position of the apple and carrot changed.

    curved foods before and after

  4. Go back to frame 15 and scrub through with the playhead. That curved motion looks a lot more natural and interesting!

Animating the Foods Out of the Box

Our animation will be a loop of the foods coming into and out of the box. We need each item to return to their starting position, or else the loop would look jarring. There’s no need to figure out the exact Position values by doing a Free Transform and tediously copy/pasting values. We can copy and paste keyframes!

  1. We want to give the viewer a bit more than a second to see the foods tightly snuggled in their cozy box before we pull them back out. Move the playhead to frame 61, which is 40 frames (113 of a second at 30 fps) after the final keyframe.

  2. To the left of each layer’s Position property, click the empty diamond diamond icon (NOT the stopwatch!) to add another keyframe for this property.

    When the diamond is empty, it is used to add keyframes. When it is yellow, there’s already a keyframe there. Clicking it would remove the keyframe at the current time!

  3. To keep our animation consistent, we want the items to leave the box in 6 frames. Move the playhead to frame 67.

  4. Before we can make the final values the same as the starting ones, we need to create keyframes that we can replace with keyframes we copy. Here at frame 67, click the empty diamond diamond icon next to Position for all 3 layers.

  5. Deselect all layers by clicking in an empty area of the canvas.

  6. Under the topmost fruits layer, Ctrl–click (Mac) or Right–click (Windows) on the first keyframe keyframe start at frame 15.

  7. From the menu that appears, click Copy.

  8. In the same fruits layer, Ctrl–click (Mac) or Right–click (Windows) on the last keyframe keyframe end you recently added at frame 67. Choose Paste and voilà, the apple is back in its original position!

    NOTE: If the Paste option is grayed out, deselect the layers and try again.

  9. Repeat this for the grains and vegetables layers:

    • Deselect all layers by clicking in an empty area of the canvas.
    • Copy the first keyframe keyframe start at frame 15. You have to Ctrl/Right–click it, as the usual Cmd/Ctrl–C shortcut will copy the entire layer instead of the keyframe!
    • Paste it onto the last keyframe at frame 67.
  10. Once again, the apple and carrot need to move along a curve. Go to frame 64 and move the apple and carrot a bit inward. Because these foods will only be in motion for a few frames and won’t affect the loop, there’s no need to be super precise. Just get them close to where they were at the middle of the first animation.

  11. In the Timeline, drag the playhead to the start of the video timeline (frame 0).

  12. Press the Spacebar to preview the animation. The playback will loop eventually because we told the Timeline to do that when we set options.

  13. Press the Spacebar again to stop playback.

Offsetting Keyframes for Sequenced Animation

Currently all the foods move into and out of the box at the same time, but we want them to do that one after the other, starting with the apple and ending with the carrot. We can do this by offsetting each individual food animation by a few frames. Let’s move some keyframes!

  1. While holding Shift, drag the playhead and when it gets close to frame 15 it will snap to the keyframes! (The playhead can snap to anywhere there are keyframes.)

  2. Wouldn’t it be nice if we could easily navigate forward and backward in time even when there aren’t any keyframes? It’s your lucky day, because there are keyboard shortcuts to do just that! These shortcuts override normal Photoshop keyboard shortcuts, so they are not enabled by default. Click the Timeline panel menu panel menu.

  3. Check on Enable Timeline Shortcut Keys.

  4. On the keyboard, press Right Arrow to go forward by 1 frame. Neat!

  5. Press Left Arrow to go back by 1 frame, so you are back at frame 15. We’ve just uncovered a much faster way to fine-tune the playhead’s location in the Timeline!

  6. Press the Right Arrow key 2 times to move the playhead forward 2 frames. The frame number at the bottom left should show 17.

  7. The leftmost food (fruits) will come in first, so we’ll keep that starting at frame 15. Let’s move the grains. Under that layer, click on the word Position to select all four of its keyframes.

  8. Drag the keyframes rightward so the first keyframe start one in the set snaps to the playhead.

  9. Make the vegetables start moving two frames later (at frame 19). Remember that you can press Right Arrow twice to move the playhead. Then drag its first of 6 Position property keyframes there.

  10. Go back to frame 0 and press the Spacebar to preview the animation. It looks nice, but it’s a bit long.

Trimming Off Extra Time

Let’s keep the foods up at the top for a second and a half (45 frames). Our last keyframe is at frame 71, so let’s make frame 116 our last frame.

  1. Move the playhead to frame 116.

  2. The length of the Work Area (the area in the Timeline panel directly above the layer bars) determines how long the final movie will be. As shown below, drag the right handle (Set End of Work Area) to the playhead so the work area ends at frame 116:

    drag work area end

  3. We want to check out the looping, so preview using Spacebar and watch the sequence at least twice. The timing looks good, so let’s export this puppy!

  4. Save the file.

Saving the GIF

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

  2. From the Preset menu, choose GIF 128 Dithered.

  3. The dithering sure looks bad! Change the Dither Algorithm from the default Diffusion to Pattern.

    NOTE: Pattern and Noise are the best Dither Algorithms for preventing the gradient banding that often happens with Diffusion. We chose Pattern because it’s the smallest file size.

  4. We’ve found that with these settings, it doesn’t look all that better with the full 256 colors. However, feel free to bump up the amount of Colors as desired. (Remember that you can use custom amounts.)

  5. To get this GIF to loop after it’s done playing, go to the bottom right and set the Looping Options menu to Forever if it isn’t already.

  6. Click Save.

  7. Name the file: yourname-meal-in-a-box.gif.

  8. Navigate into Desktop > Class Files > Animated GIFs Class > Meal in a Box and click Save.

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

photo of Dan Rodney

Dan Rodney

Dan Rodney has been a designer and web developer for over 20 years. He creates coursework for Noble Desktop and teaches classes. In his spare time Dan also writes scripts for InDesign (Make Book JacketProper Fraction Pro, and more). Dan teaches just about anything web, video, or print related: HTML, CSS, JavaScript, Figma, Adobe XD, After Effects, Premiere Pro, Photoshop, Illustrator, InDesign, and more.

More articles by Dan Rodney

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