Movie Rating: Vector Layouts & the Graph Editor

Free After Effects Tutorial

Learn the intricacies of animation with this comprehensive After Effects tutorial, covering concepts like Adjustment Layers, The Invert Effect, The Value Graph Editor, and Animating Vector Shapes Using Trim Paths.

This exercise is excerpted from past After Effects training materials and is compatible with After Effects updates through 2020. To learn current skills in After Effects, check out our After Effects classes and video editing classes in NYC and live online.

Topics covered in this After Effects tutorial:

Adjustment Layers, The Invert Effect, The Value Graph Editor, Animating Vector Shapes Using Trim Paths, Moving Together, Fading Separately

Exercise Preview

preview hbo rating vectors

Exercise Overview

If you’ve watched a movie on Movie or a similar channel, you may have seen a short animation sequence that displays the movie rating next to info about content that may not be appropriate for younger viewers. We’ll create one in this exercise by importing an Adobe Illustrator file with multiple layers and using the Trim Paths feature that can draw a shape on-screen. You’ll also get your feet wet with the Graph Editor, which can customize the speed of an ease.

After Effects 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 What You’ll Make in This Exercise

  1. You should still have yourname-Movie Intro.aep open in After Effects. If you closed it, re-open it now. We recommend you finish the previous exercises (4A–4B) before starting this one. If you haven’t finished them, do the following:

    • Open Movie Intro-Ready for Rating Vectors.aep (from the Movie Movie Intro > Finished AE Projects folder).
    • Save the file as yourname-Movie Intro.aep in the Movie Intro folder.
  2. On the Desktop, navigate to Class Files > After Effects Class > Movie Intro > Finished Clips and double–click Movie-Rating.mov.

  3. Slide the playhead slowly and notice the following entrance animation:

    • First the PG-13 rating fades in as it falls down. At the same time, the footer with the CC (closed captioning), Dolby, and ESP (Español) icons fades on.
    • The buttons that describe why the movie got its rating fall into place together, but fade in separately, starting from Adult Language at the bottom.
    • Throughout the entrance animation, the dividing line between the rating and the buttons draws downward, only ending when all the other animation is complete.
  4. Now let’s examine the exit animation. Slide the playhead slowly and notice:

    • After viewers have gotten the chance to read the text, everything but the footer falls down together starting around the same time. (The footer simply fades off.)
    • If you look at it carefully, you’ll see that the move is initiated by the three content warning buttons. Like before, the bottommost button starts animating first.
    • The PG-13 rating starts its exit a little bit after the buttons start moving down.
    • Throughout the exit animation, the dividing line erases from top to bottom, only ending when all the other animation is complete.
  5. Replay the video as many times as you need—we’ll be reproducing it in this exercise. Keep it open so you can refer back to it as needed.

Creating Our Rating Comp & Making the Content Visible

  1. Switch to After Effects, where yourname-Movie Intro.aep is open.

  2. Go to Composition > New Composition so we can create a dummy comp.

  3. Set the Duration to 5 seconds and 10 frames by typing 510 and clicking OK.

  4. Go to the Project panel, click on the new composition, and press the Delete key.

  5. Let’s import our layered Illustrator file. Press Cmd–I (Mac) or Ctrl–I (Windows).

  6. Navigate into Desktop > Class Files > After Effects Class > Movie Intro > Assets > Vectors, and click on Movie-rating-page.ai. Do not open it yet!

  7. Near the bottom, find the Import As menu (Mac users may need to click the Options button). As is the best practice, we are importing this file after we’re done editing it, so choose Composition – Retain Layer Sizes. As you saw in a previous exercise, cropping bounding boxes to fit the layers is the best option for final art.

  8. Click Open (Mac) or Import (Windows).

  9. In the Project panel, double–click the Movie-rating-page composition to open it.

  10. Almost nothing is visible, but don’t worry—this composition actually has a transparent background. Let’s take a look at the content without the illusory solid “background”. Go to the bottom middle of the Composition panel and click the Toggle Transparency Grid button transparency grid icon.

  11. Notice that almost all of the text is black, and the rest is white. It’s really easy to change the black areas to white and vice versa. Go to Layer > New > Solid.

  12. In the dialog that opens, don’t change any options and click OK.

  13. We want the solid to be a white background, which will help us invert the colors. However, your solid is likely black (or whatever color you chose for the last solid color layer you created). To change the solid’s settings, go to Layer > Solid Settings.

  14. In the dialog that opens, click the Make Comp Size button and set the following:

    Name: BG
    Color: Click the color swatch and enter #FFFFFF (White)

    Click OK twice.

  15. In the Timeline, drag the [BG] layer below all the other layers.

  16. Let’s swap out the colors. At the top of the Timeline, click on the PG-13 layer so the layer we’re about to add will get added above all the other layers.

  17. Go to Layer > New > Adjustment Layer. An adjustment layer is an invisible layer that will affect the layers below it, but not above it. It’s similar to placing clear film or acetate in front of the camera or between subjects.

  18. Adjustment layers are an effective way to add an effect to multiple layers. To add our effect, go to Effect > Channel > Invert.

    The colors will get swapped out so it’s white text and graphics on a black background. Everything is visible because the adjustment is above all our layers.

  19. Click on the adjustment layer and rename it to Invert Adjustment (press Return (Mac) or Enter (Windows), type in the name, and press Return/Enter once more).

  20. For the topmost and bottommost layers (Invert Adjustment and [BG]), click in the Lock column lock column so we don’t accidentally mess with them.

  21. When working with Illustrator layers, remember that it’s a good idea to turn on the Continuously Rasterize switch continuously rasterize column that’s displayed at the top of the Timeline’s left-hand side. If you don’t see it, go to the bottom of the Timeline and click the Toggle Switches / Modes button now.

  22. Under the Continuously Rasterize column, click in the empty space to turn the option on continuously rasterize switch for all the Illustrator layers (which should be Layers 2–7).

    Vector layers are based on math, not static pixel data. Remember that this switch ensures vector layers will stay sharp at all times.

Using the Graph Editor to Customize Easing Speed

So far, we’ve been using easy eases to slow down animation as the playhead leaves or approaches certain keyframes. But what if you want to customize an ease? Enter the Graph Editor. We’ll use it to give the PG-13 layer a “hard ease in” (an extreme amount of slowdown when approaching a keyframe) as it enters the composition.

  1. In the finished animation, the PG-13 rating fades up in about 23 of a second. Move the playhead to 0;20, where we’ll add the final set of keyframes.

  2. Select the PG-13 layer and press P to bring up its Position property.

  3. We only want to animate the Y Position so Ctrl–click (Mac) or Right–click (Windows) on the Position property and select Separate Dimensions. This allows us to have 2 separate sets of keyframes: one for X position and another for Y position.

  4. Click into an empty area of the Timeline to deselect the separated properties.

  5. Next to Y Position, click the stopwatch stopwatch to add a keyframe at this point in time.

  6. We also want a fade, so press Shift–T to display the Opacity property.

  7. Click the stopwatch stopwatch next to Opacity to add a keyframe on this property.

  8. Press the Home key (or Fn–Left Arrow) to get to the first frame at 0;00.

  9. Change Y Position to 505 and Opacity to 0%.

  10. Let’s add an easy ease so we can customize it using the Graph Editor. Draw a selection box around the second column of keyframes keyframe end at 0;20.

  11. Go to Animation > Keyframe Assistant > Easy Ease In.

  12. To open the Graph Editor, go to the top middle of the Timeline and click its icon graph editor icon:

    click graph editor icon

  13. At the bottom of the graph, click the following buttons (listed from left to right):

    • Click the eye menu eye icon graph editor and make sure Show Selected Properties is selected.
    • There are two types of graph in After Effects, so click the Choose graph type and options menu graph options icon. From the menu that appears, choose Edit Value Graph if it isn’t already. It’s easier to use than the Speed Graph, so we’ll use the Value Graph in this exercises. Note that the Value Graph can only be used with the Position property when the dimensions are separated.
    • If the Transform Box icon transform box icon is selected (blue), click it to turn the option off.
    • Click the “double noodle” Fit all graphs to view button fit graph to view icon.
  14. To make a hard ease, click and hold on one of the yellow handles and press Shift to constrain it to a straight horizontal line. Drag it leftward, all the way to the 05f (5 frame) mark, as shown in the screenshot below:

    graph editor drag second keyframes

  15. Look at the graph to see that most of the line is very shallow. The shallower the curve, the slower the ease. You just edited the ease to start at the 5 frame mark, which means it starts slowing down almost immediately. Because we pulled both keyframes’ handles together, the Y Position and Opacity animation timing and look match each other. That’s what we want!

  16. Let’s make this a slightly harder ease by adding an ease to the first set of keyframes at 0;00. While we can’t see diamond-shaped keyframes here in the Graph Editor, you can select the square ends of the curve. Drag a selection box over them.

  17. Go to Animation > Keyframe Assistant > Easy Ease and you’ll see yellow handles appear in the Graph Editor.

    Easing Handles in the Graph Editor

    As you just saw, the Graph Editor won’t give you handles for keyframes without easing. Easy Eases will have handles on both sides of a keyframe, except when they are applied to a keyframe at the start or end of a group of keyframes (like this first keyframe). Easy Ease Ins and Ease Outs will only have a handle on the side that’s easing.

  18. Drag one of the yellow handles to around 02f, similar to the screenshot below:

    graph editor drag first keyframes

  19. At the top middle of the Timeline, click the Graph Editor button graph editor icon to get back to the normal Timeline.

  20. When we fit the graph to view, we made it so only 20 frames are showing in the Timeline at a time! To see the entire length of the layer bars, go to the bottom of the Timeline and drag the zoom slider zoom slider out all the way to the left.

  21. We want the footer layer to have the same Opacity animation, so make sure you’re still at 0;00 and you can see the PG-13 layer’s Opacity property.

  22. In the PG-13 layer, click in an empty area, then on the word Opacity.

  23. Press Cmd–C (Mac) or Ctrl–C (Windows) to copy the Opacity keyframes.

  24. Select the Footer layer and do a Cmd–V (Mac) or Ctrl–V (Windows).

  25. Slowly drag the playhead forward to see that our custom ease slows the animation to a snail’s pace as it approaches the last set of keyframes. Nice and weighty!

Animating Vector Shapes Using the Trim Paths Feature

In the final video, the vertical dividing line slowly draws down from top to bottom, starting at the beginning of the animation, and not stopping until all three buttons appear. (Feel free to re-watch the video anytime you need.)

  1. Ctrl–click (Mac) or Right–click (Windows) on the Vertical Line layer. We’ll animate it using a shape layer, so from the menu choose Create > Create Shapes from Vector Layer.

    This creates the new shape layer right above the Vertical Line layer it’s based on.

  2. At the bottom left of the Composition panel, click the Toggle Mask and Shape Path Visibility button toggle path visibility icon to make the button gray out. Now we can see the line better!

    NOTE: Because the new Vertical Line Outlines layer is below our Invert Adjustment layer, we can see it. If it were above the adjustment layer, it would not be visible!

  3. To get a better look at the line, zoom in by pressing the period (.) key.

  4. Notice the ends of this line are very sharp, because that’s how they were created in Illustrator. We want to smooth them out, and luckily we can do so without leaving After Effects. Swivel open Vertical Line Outlines > Contents > Group 1 > Stroke 1.

    Remember that shape layers have one or more groups, which keep it all together. A group must contain a path and either a stroke or fill for the shape to be visible.

  5. Notice that the Line Cap is currently a Butt Cap. Not so PG-13! Click the dropdown that says Butt Cap and change it to Round Cap to make the ends of the line rounder.

  6. We actually want to add a new animation, so swirl Group 1 closed.

  7. Next to Contents, click on the button next to Add add new animation and from the flyout that appears, choose Trim Paths.

  8. Swivel open Trim Paths 1, and experiment with the Start and End properties, which in this case represent the two ends of the line:

    • Hover over the Start value until you see a hand slider hand slider. Slowly drag it to the right to see the line shrink from the top.
    • Drag the End value to the left to see it shrink from the bottom. Keep dragging it until it has the same value as Start, and you’ll see the line disappears ONLY when it gets to this point. Any difference between the two values means part of the shape is visible!
    • Set Start back to 0% and End back to 100%.
  9. Before we put an “invisibility sock” on our line by animating the shape layer, make sure the playhead is at 0;00.

  10. Set the End property to 0% and turn on its stopwatch stopwatch. Because its value is the same as Start, the line is fully invisible.

    NOTE: Because we want it to appear from the top, we’re animating the End. If we wanted an upward animation, we’d animate Start instead.

  11. Move the playhead to 1;10—when we want the animation to end.

  12. Our goal is to get After Effects to draw the entire path, so change the End value to 100%, making it fully visible.

  13. Ctrl–click (Mac) or Right–click (Windows) on the second keyframe keyframe end and go to Keyframe Assistant > Easy Ease In to slow down the end of the animation.

  14. Press Spacebar to play back, and notice the animation looks pretty good so far!

Animating the Three Pay Television Content Descriptors

Next we’ll animate the buttons with short descriptions of the movie’s objectionable content. These are called pay television content descriptors, because you’ll see them on pay-per-view and premium channels. We want them to fall down as a unit but fade up one at a time starting from the bottom and working their way up.

  1. In the Timeline, select the Violence layer so the layer we’re about to add will go on top of that.

  2. To help us animate the buttons as a unit, go to Layer > New > Null Object.

  3. Rename it Button Mover Null (press Return/Enter to start and end renaming).

  4. Press P and change the Position to 1065, 534.

  5. Ctrl–click (Mac) or Right–click (Windows) on the Position property and select Separate Dimensions.

  6. Click on the Button Mover Null layer name to deselect the properties, then Shift–click on the Adult Language layer. (Four layers should be selected.)

  7. To visually distinguish the null and the layers it’ll affect, click on the colored square to the left of the layer number and from the Label Color menu, choose Green.

  8. Cmd–click (Mac) or Ctrl–click (Windows) on the Button Mover Null layer to remove it from the selection.

  9. In any selected layer, change the Parent & Link menu from None to 5. Button Mover Null.

  10. If the playhead isn’t already at 1;10, move it there.

  11. In the Button Mover Null layer, click the stopwatch stopwatch next to Y Position.

  12. Move the playhead back in time to the 5 frame mark—0;05.

  13. Change Y Position to 434 and notice all three buttons move with the null object.

  14. Drag the playhead forward to see that the three button layers are moving downward with the null. Great!

    The next step is to fade these buttons from the bottom on up. We want to animate them independently but it’s important to know we couldn’t do this with the null object even if we wanted to. Remember that this is because a parent cannot control either effects or Opacity. If a null changes in Opacity, its child layers will not.

  15. Hold Shift and drag the playhead until it snaps to the keyframe at 1;10.

  16. Let’s animate them all at once before we stagger their appearance. In the Timeline, click on the Violence layer and Shift–click on Adult Language.

  17. Press T for Opacity and in any selected layer, turn on the stopwatch stopwatch.

  18. Go to 0;15 and set Opacity to 0%.

  19. Scrub through the animation and see all three buttons fade in together. A good start.

  20. Select all four of the keyframes keyframe end at 1;10. (This includes Button Mover Null’s Y Position keyframe!)

  21. Go to Animation > Keyframe Assistant > Easy Ease In.

  22. If you have time, now would be a good place to customize easing for these keyframes in the Graph Editor. Because our position values are separated, you can follow the same process as you did for the PG-13 a few pages earlier.

  23. Now let’s stagger these fades. Move the playhead to 0;10.

  24. Select both of the Adult Content keyframes by drawing a selection box over them.

  25. Start dragging the keyframes to the left, then press Shift. Release the mouse when the first keyframe in the set snaps to the playhead at 0;10.

  26. Hold Shift and drag the playhead until it snaps to the null’s keyframe at 0;05.

  27. Select the Adult Language keyframes and drag them so they snap to the playhead.

  28. Scrub through with the playhead. Great, our entrance animation is done!

The Exit Animation

Let’s next create the exit sequence. This animation starts on the right-hand side with the pay television content descriptors. These buttons start moving down and fade off from the bottom to the top, then the PG-13 rating joins in a little bit after that. Similar to the entrance animation, the footer just fades off and the horizontal line doesn’t finish animating until everything else is off-screen.

  1. This information needs to stay on-screen long enough for viewers to read the text—it’s a legal thing. Move the playhead to 3;20, the beginning of our exit sequence.

  2. In the Timeline, select the Button Mover Null layer and add a Y Position keyframe by clicking the diamond diamond icon.

  3. If the new Y Position keyframe has an Easy Ease keyframe end easy ease, Cmd–click (Mac) or Ctrl–click (Windows) on it to remove the easing.

  4. We want the null object to stop animating at 5;00, so move the playhead there.

  5. Set the Button Mover Null layer’s Y Position to 720.

  6. Similar to their entrance, we want the objectionable content buttons to fade out in a staggered manner. This’ll start at 3;20, so press J to return to the previous keyframe.

  7. In the Timeline, click on the Violence layer and Shift–click on Adult Language. Make sure the Opacity keyframes are visible, as we’re about to add more.

  8. To the left of Opacity, click any of the three layers’ diamonds diamond icon to add linear keyframes. If they’re Easy Eases keyframe end easy ease, Cmd–click (Mac) or Ctrl–click (Windows) on it to remove the easing.

  9. We want the buttons’ fade-out to end a second later, so move the playhead to 4;20.

  10. Set Opacity to 0%.

  11. Select all four of the keyframes keyframe middle at 3;20: the three buttons’ Opacity keyframes and Button Mover Null’s Y Position keyframe.

  12. Go to Animation > Keyframe Assistant > Easy Ease Out.

  13. Let’s stagger these fades. Move the playhead to 3;25.

  14. In the Adult Content layer, draw a selection box over its last 2 keyframes.

  15. Start dragging the keyframes to the right, then press Shift. Release the mouse when the first keyframe in the set snaps to the playhead at 3;25.

  16. Move the playhead to 4;00.

  17. Select the Violence keyframes and drag them so they snap to the playhead.

  18. Move the playhead to 3;20 (where there are keyframes) and scrub through to see your work so far. It’s coming along nicely, so let’s animate the rating next.

  19. The rating will start fading out and falling down at 4;00. Move the playhead there.

  20. Select the PG-13 layer and press the U key if you can’t see its keyframes.

  21. Next to both Y Position and Opacity, click the diamonds diamond icon to add two keyframes.

  22. If the new Opacity keyframe has an Easy Ease keyframe end easy ease, Cmd–click (Mac) or Ctrl–click (Windows) on it to remove the easing.

  23. Move the playhead to 5;00.

  24. Set Y Position to 640 and Opacity to 0%.

  25. Select the first column of new keyframes keyframe middle (at 4;00) and go to Animation > Keyframe Assistant > Easy Ease Out.

  26. The footer will start fading away at 4;10, so move the playhead there.

  27. Select the Footer layer and press T if you can’t see its Opacity keyframes.

  28. Next to Opacity, click the diamond diamond icon to add another keyframe.

  29. If it has an Easy Ease keyframe end easy ease, Cmd–click (Mac) or Ctrl–click (Windows) on the keyframe.

  30. Move the playhead to 5;00 and change the Opacity to 0%.

  31. Select its first keyframe keyframe middle at 4;10 and go to Animation > Keyframe Assistant > Easy Ease Out.

  32. Lastly we’ll erase the horizontal divider from top to bottom. This will start at 4;00, so move the playhead there.

  33. In the Timeline, swivel open Vertical Line Outlines > Contents > Trim Paths 1. We want the line to disappear from the top this time, so next to the Start property (not the End!), turn on the stopwatch stopwatch.

  34. Go to 5;00 and set Start to 100%. Now both the Start and End values are the same so the line is invisible.

  35. At 4;00, Ctrl–click (Mac) or Right–click (Windows) on the first new keyframe keyframe start and go to Keyframe Assistant > Easy Ease Out.

  36. Go to 3;20 and drag the playhead to preview the exit sequence. Oof, the line is quite bright at full opacity! Near the end of its exit, let’s fade it out.

  37. Move the playhead to 4;15.

  38. With the Vertical Line Outlines layer selected, press T to pull up its Opacity.

  39. Add a keyframe by clicking the stopwatch stopwatch next to Opacity.

  40. Go to 5;00 and set Opacity to 0%.

  41. Select the first keyframe keyframe start at 4;15 and go to Animation > Keyframe Assistant > Easy Ease Out.

  42. Press Spacebar to preview the animation from the beginning. Great job!

  43. Do a File > Save and leave this project open to use in the next exercise.

Kalika Kharkar Sharma

Kalika Kharkar Sharma is a professional animator and motion designer. She has worked on projects for some of the world's leading studios and companies, creating innovative and entertaining motion graphics and character animations. Kalika is passionate about helping others learn the craft of animation and has taught at several universities and academies.

More articles by Kalika Kharkar Sharma

How to Learn After Effects

Master After Effects with hands-on training. After Effects is the industry-standard application for motion graphics, animation, and visual effects.

Yelp Facebook LinkedIn YouTube Twitter Instagram