Text Animation: Creating a Transition Between Layouts

Free After Effects Tutorial

Learn how to create an animated transition in Adobe After Effects by using guide layers for positioning reference, moving lines of text using null objects, and using a guide layer to move text away from expanding graphics in this comprehensive tutorial.

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:

Guide Layers as Positioning Reference, Moving Lines of Text Using Null Objects, Moving Text Away from Expanding Graphics using a Guide Layer, Splitting Layers to “Unparent” a Child Layer

Exercise Preview

preview text animation layout transition

Exercise Overview

In this exercise, we will create an animated transition between the layout we worked on in the previous exercise and the next scene. An interesting, effective transition doesn’t need lots of dramatic bells and whistles. Oftentimes you can use an item inside one of the layouts to initiate the transition. We’ll do that by adding a vector pie chart that will move, cover, or reveal other elements every time it moves.

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-Text Animation.aep open in After Effects. If you closed it, re-open it now. We recommend you finish the previous exercise (2A) before starting this one. If you haven’t finished it, do the following:

    • Open Text Animation-Ready for Layout Transition.aep (from the Text Animation > Finished AE Projects folder).
    • Save the file as yourname-Text Animation.aep in the Text Animation folder.
  2. On the Desktop, navigate to Class Files > After Effects Level 2 Class > Text Animation > Finished Clips and double–click Text-Animation-Pie-Chart-Transition.mov.

  3. Play the video and notice the following (you may need to slide the playhead slowly):

    • After viewers have gotten a chance to read the text in our first layout, a pie chart appears. The smaller gold “slice” is 12% of the whole shape.
    • As the entire shape expands around its center, the lines of text move over to make room. They overshoot their final positions and settle as right aligned text.
    • Not long after the text stops moving, the pie chart starts spinning clockwise and continues to grow until all of the lines of text are covered up.
    • Once the pie chart is as big as it’s going to get, the “slice” disengages from the pie. As it moves apart from the larger shape it was formerly attached to, the next layout gets revealed!
  4. 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.

Using a Guide Layer as a Positioning Reference

  1. Switch to After Effects, where yourname-Text Animation.aep is open.

  2. In the Timeline, switch to the Text Animation-MAIN tab if you aren’t already there.

  3. At the top of the layer stack, locate the [02-Pie Chart] pre-comp layer and toggle its visibility on by clicking the eye switch eye icon.

    In this second layout, you should see that the lines of text have moved over to the left of their original positions, making room for a pie chart on the right.

  4. Because this transitional layout is similar to the layout we animated in the previous exercise, let’s use it as a guide to help us reposition the text we already have (instead of animating this layer). In the Timeline, Ctrl–click (Mac) or Right–click (Windows) on the layer and select Guide Layer.

    Notice the new guide layer icon guide layer icon.

  5. Guide layers are only visible in the composition you’re currently working in, but we want it in our first layout’s pre-comp. Copy it.

  6. At the top of the Timeline, switch to the 01-12 Percent tab.

  7. So the layer will paste above everything else, select the topmost layer, which should be line 1 matte.

  8. Paste the guide layer.

  9. To make this layer a more helpful positioning reference, let’s lower its opacity. Press T to show the property, then change it to 50%. Much better!

Creating the Null Objects That Will Move the Text

Except for the third line with the 12% text, all of the lines of text are comprised of multiple words. So we can move each multi-word line as a single object, let’s parent each of them to their own null object.

  1. Let’s temporarily hide the [02-Pie Chart] guide layer so we can position the null objects we’re about to create. Click the layer’s eye switch eye icon off.

  2. If you can’t see all the lines of text, move the playhead to 4;21 (when the final line stops moving) or later.

  3. Because our first null object will move the first line, select the Medical text layer.

  4. Go to Layer > New > Null Object.

  5. To remind us of its role in our animation, rename it to line 1 mover.

  6. In the Tools panel at the top, make sure the Selection tool selection tool is active.

  7. Press the Up Arrow key (adding Shift when you need to move 10 times as fast) until the line 1 mover layer’s anchor point anchor point (on the top left of its red wireframe) is positioned in the center of the line 1 text, right around the letter e’s horizontal line.

    The Position should be around 960, 392.

  8. In the Timeline, select all the other red layers by clicking on the Medical text layer and Shift–clicking on line 1 matte.

  9. Under one of the selected layers’ Parent & Link column, drag the pick whip pick whip icon to the line 1 mover layer name and release.

  10. Repeat the last several steps to create a new null object called line 4 mover directly above the of text layer.

  11. Change its Position y coordinate to 740.

  12. Remember to make its layer color Fuchsia.

  13. Parent the other layers with the same color to this new null object (the text layers of, their, and resources, as well as the line 4 matte).

  14. The second line’s two text layers and their associated mattes also need to move as a single unit. Select all four yellow layers and press Cmd–Shift–C (Mac) or Ctrl–Shift–C (Windows) to pre-compose them. This is another way to move layers as a unit.

  15. Name it 01-Line 2-PC. It remembered the previous settings, so just click OK.

  16. Select the [01-Line 2-PC] layer, press A and then Shift–P to show the Anchor Point and Position.

  17. Grab the Pan Behind (Anchor Point) tool pan behind anchor point tool to move the anchor of this pre-comp.

  18. Drag the anchor point anchor point, while looking at the Timeline, until the Position and Anchor Point values are around 960, 488.

  19. Change the [01-Line 2-PC] layer’s label color to Yellow.

  20. By the time we want to move these layers over, the individual 12% chunks are long gone. This means that for the third line, we’ll only be moving the 12% layer. We won’t need a null object, but we do need to center the Anchor Point. To take a look, select the 12% layer and Solo solo switch it.

  21. With this layer selected, to Layer menu > Transform > Center Anchor Point in Layer Content.

  22. When done, turn the Solo switch solo switch off, so you can see all your layers again.

Expanding the Pie Chart as It Enters the Composition

The pie chart’s initial move into our composition will influence every other element in our project so far. So we can get a good sense of when to move each individual line of text, let’s first animate the pie chart as a whole so both the pie and its slice grow around the anchor point in the pie’s center.

  1. Let’s get back to the master composition using the Composition Mini-Flowchart. To open it, go to the top middle of the Timeline and click its icon comp mini flowchart icon:

    click comp mini flowchart icon

  2. Notice the mini-flowchart shows the comp’s nested pre-comps on the right, as well as the comp that it’s nested within, on the left. A neat visual of the project structure! As shown below, click on Text Animation-MAIN to go up a level to the main comp:

    comp mini flowchart choose parent comp

  3. Move the playhead to 5;20, the end of the pie chart’s entrance animation.

  4. We want to hide the distracting guide layer and show the two vector layers. Click the eye switches eye icon next to the [02-Pie Chart], slice, and pie layers.

    Notice that the pie layer is parenting the smaller slice layer. Wherever the pie goes, the little slice will come along for the ride!

  5. Let’s animate backwards. Select the pie layer. Press Opt–S (Mac) or Alt–Shift–S (Windows) to add a Scale keyframe.

  6. Like the lines of text in the previous exercise, our pie chart is so excited about expanding that it gets a little bigger than its current size. Let’s scale it up a bit to create an overshoot keyframe. Move the playhead to 5;16.

  7. We want the chart to scale up 110% of its current size, but unless you’re a math whiz, you’d probably need to pull out a calculator to figure out the value we need. Luckily After Effects can do this math for you! Click into either 84% and change it to 84*1.1.

  8. This tells After Effects to multiply the original value by 1.1, to scale it up 110%. Press Return (Mac) or Enter (Windows), scaling the pie and its child to 92.4%!

  9. Press I to go to the layer’s in point at 5;06.

  10. Set Scale to 0% and leave the playhead here until we tell you to move it.

  11. Select the second keyframe keyframe middle (at 5;16) and press F9 to Easy Ease it.

  12. Let’s see how the chart’s expansion affects our text so far. Starting at 5;06, press Cmd-Right Arrow (Mac), Page Down (Windows), or Fn–Down Arrow, to advance frame-by-frame.

    Notice that at 5;11, the pie chart starts touching the top line of text, invading its “personal space”. In the next frame, it touches the bottom line of text and before long, the middle two as well.

    To maintain a good amount of negative space between objects, let’s set up our text animation so each layer “sees” what’s about to happen and starts moving away around three frames before the chart would touch them. To make it as realistic as possible, we’ll move the layers in order of their closeness to the chart.

  13. Above the composition itself, go to the top left of the Composition panel. Here, there’s another visual of the project structure, with the comp names listed like a computer directory. As shown in the image below, click on the word 01-12 Percent:

    comp directory choose child comp

Make Way for Pie: Moving the Lines Away from the Chart Using the Guide Layer

From the perspective of the lines of text, the incoming pie chart is like a flood that is forcing them out of their homes. To convey their rush to move away, we’ll make each line overshoot its resting position by about one letter before they breathe a sigh of relief that the chart is no longer expanding. We’ll use the guide layer to help us position these overshoot and final keyframes.

  1. Next to the [02-Pie Chart] guide layer, click the eye switch eye icon to make it visible.

  2. The chart started touching the top line at 5;11, so move the playhead three frames earlier, to 5;08. This is two frames after the chart starts animating.

  3. Because line 1 is the longest, it’s closest to the pie chart and will be the first to “feel” it moving on-screen. Select the red line 1 mover layer that controls the entire line.

  4. Press the P key, then Ctrl–click (Mac) or Right–click (Windows) on the Position property that appeared and select Separate Dimensions.

  5. Deselect the two properties, then enable horizontal keyframing by clicking the stopwatch stopwatch next to X Position.

  6. Press Shift-Cmd-Right Arrow (Mac), Shift–Page Down (Windows), or Shift–Fn–Down Arrow, to move the playhead forward 10 frames. You should be at 5;18, when the first line will overshoot its destination.

  7. Press the V key as a shortcut to get the Selection tool selection tool.

  8. As shown below, press the Left Arrow key (adding Shift when needed) to move the null object to the left. Stop when the line of text is one letter space to the left of the same text in the [02-Pie Chart] guide layer, as shown below:

    text animation line1 transition overshoot

    You should have an X Position of around 572.

  9. Our pie chart stopped moving four frames after it overshot its final size. Let’s make the lines of text match its timing. Move the playhead four frames later, to 5;22.

  10. Use the Right Arrow key to move the text until each letter aligns as closely as possible with the guide layer. (If you need to zoom in, press the period (.) key.)

    NOTE: The guide layer text is positioned just a tiny bit higher than the text we’re moving. Do not move the null object vertically to perfectly align the two—the guide layer is set up this way to help you better gauge the positioning when you get close.

  11. Select the second keyframe keyframe middle (at 5;18) and press F9 to add an Easy Ease.

  12. Let’s check out the animation starting at the beginning of the transition. In the Timeline, look at the [02-Pie Chart] layer and notice it has a triangular marker marker that says start transition. We’ll create a marker like this in a later exercise.

  13. Just like with keyframes, the playhead can snap to markers. Hold Shift and drag the playhead until it snaps to the marker marker (at 5;06).

  14. In the Preview panel, make sure Play From is set to Current Time.

  15. Press the Spacebar to preview.

    The animation looks good, so let’s rinse and repeat with the other lines.

  16. As the pie chart expands like a ripple in a pond, the text will also start moving in ripples. Move the playhead to 5;09, 1 frame after the first line starts its move.

  17. The second longest line is the bottommost one. Select the fuchsia line 4 mover layer, pull up its Position property, and Separate Dimensions.

  18. Deselect the properties, then click the stopwatch stopwatch next to X Position.

  19. Press Shift-Cmd Right Arrow (Mac), Shift–Page Down (Windows), or Shift–Fn–Down Arrow, to move the playhead forward 10 frames to 5;19, where we’ll keyframe its overshoot position.

  20. Move the line of text leftward, so it’s one letter space to the left of the guide layer’s fourth line. (The X Position should be around 738.)

  21. This line’s final, “settle” keyframe will be at 5;23, so move the playhead there.

  22. Move the text so each letter aligns as closely as possible with the guide layer.

  23. Select the second keyframe keyframe middle (at 5;19) and press F9 to add an Easy Ease.

  24. Next up, let’s move our second line! Select the yellow [01-Line 2-PC] layer, pull up its Position property, and Separate Dimensions.

  25. Follow the same process to add X Position keyframes at the following timecodes:

    5;10: Click the stopwatch stopwatch to add the initial keyframe.
    5;20: Change the X Position to 850.
    5;24: Move the letters so they align with the guide layer.
  26. Select the second keyframe keyframe middle (at 5;20) and press F9 to add an Easy Ease.

  27. Select the 12% layer, pull up its Position property, and Separate Dimensions.

  28. Follow the same process to add X Position keyframes at the following timecodes:

    5;11: Click the stopwatch stopwatch to add the initial keyframe.
    5;21: Change the X Position to 924.
    5;25: Move the letters so they align with the guide layer.
  29. Select the second keyframe keyframe middle (at 5;21) and press F9 to add an Easy Ease.

  30. Click the eye eye icon next to the [02-Pie Chart] guide layer to make it invisible.

  31. Go to 5;06 and press the Spacebar to preview. Awesome, this transitional layout is done! We’re ready to transition to the next one, where we’ll introduce a solution for all those inefficiently used medical and dental resources.

Expanding the Pie Chart to Cover Up the Second Layout

Because the next layout shares the same background but otherwise has different elements on it, covering up everything but the current layout’s background will make for an effective transition. Let’s do so by expanding the pie chart a second time.

  1. Go back to the Text Animation-MAIN master comp using either the Composition Mini-Flowchart comp mini flowchart icon at the top middle of the Timeline, the directory at the top of the Composition panel, or simply by clicking on its Timeline tab.

  2. Move the playhead to 7;01, when the pie chart will start growing. This gives viewers time to see the pie chart and grasp the importance of their unused resources.

  3. In the pie layer to the left of Scale, click the diamond-shaped dip diamond icon to add another keyframe.

  4. Press Opt–P and Opt–R (Mac) or Alt–Shift–P and Alt–Shift–R (Windows) to add Position and Rotation keyframes.

  5. Move the playhead to 7;18.

  6. Center the chart by setting Position to 920, 530.

  7. To make the pie cover almost all of the composition frame, set Scale to 300%.

  8. Both of these Illustrator layers are vector graphics. Because we’re scaling the pie and slice larger than 100%, we should turn on their Continuously Rasterize switches continuously rasterize switch. Do that now.

    Remember that this ensures the layers will always stay sharp, no matter how large they scale.

  9. Between the first keyframe and this one, we want the chart to make one full revolution with 72 extra degrees. To spin it around, set Rotation to 1x+72°.

  10. Select the final set of three keyframes keyframe end at 7;18.

  11. Press Shift–F9 as a shortcut to add an Easy Ease In.

  12. Press I to return to 5;06, then press the Spacebar to preview from the current time. Now that we can no longer see the text we’ve been working with, we need to complete our transition and reveal the project’s next layout.

Splitting Layers to “Unparent” a Child Layer

Our slice is all grown up and ready to leave the nest, so let’s “unparent” it! In a previous exercise, we mentioned that the Parent attribute has no stopwatch, so unless we were to install a handy $29.99 script called Good Parents, we can’t do this by adding or removing keyframes. Luckily we can just split the child layer at the point in time where we want it to stop following its parent.

  1. We want the slice to start detaching from its parent at 7;18, so go there now.

  2. In the Timeline, select the slice layer and press Cmd–Shift–D (Mac) or Ctrl–Shift–D (Windows) to split the layer.

  3. Rename the slice 2 layer to slice alone and press U to see it has no keyframes.

  4. Go into the slice alone layer’s Parent & Link menu and choose None.

  5. We want to animate the newly independent slice to detach from its former parent, so both layers can move away from each other to reveal the third layout. To help us position the slice as it comes apart from its parent, let’s move its anchor point to its narrowest point. Go to Window > RepositionAnchorPoint.jsx.

  6. We rotated this layer for you ahead of time, so the tip of the slice is actually at the bottom left. In the panel, click on the bottom left arrow reposition anchor point bottom left.

  7. Click the Reposition button to move the layer’s anchor point accordingly.

  8. Close the panel using the panel menu panel menu or the red button above the panel.

  9. Press Opt–P (Mac) or Alt–Shift–P (Windows) to keyframe the Position property.

  10. We want the pie and slice to move away from each other in about 13 of a second, so move the playhead accordingly, to 8;01.

  11. Change the first Position value (the x coordinate) to 1930 to place the slice fully off-screen to the right. Neat, we can already get a glimpse of the next layout!

  12. Select the pie layer and with the playhead still at 8;01, change its first Position value to –830 to move it off-screen left.

  13. In the Preview panel, change Play From to Start of Range (you may need to scroll down).

  14. Press Spacebar to preview the entire project from the very beginning.

    At the end of the animation so far, the pie and slice break apart to reveal our third layout. It’s quite appropriately numbered because in the next exercise, we’ll be animating the elements on it in the third dimension!

  15. In the Timeline, use the arrows right arrow menu to swivel closed any open layers.

  16. Save the project and leave it open. We’ll continue working on it 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