7 ANIMATING SHAPES AND USING MASKS

Lesson overview

In this lesson, you’ll learn how to do the following:

  • Animate shapes with shape tweens.

  • Use shape hints to refine shape tweens.

  • Animate gradient fills.

  • View onion skin outlines.

  • Apply easing to shape tweens.

  • Create and use masks.

  • Understand mask limitations.

  • Animate the mask and masked layers.

Image

This lesson will take about one hour to complete.

To get the lesson files used in this chapter, download them from the web page for this book at www.adobepress.com/AnimateCIB2020. For more information, see “Accessing the lesson files and Web Edition” in the Getting Started section at the beginning of this book.

You can easily morph—create organic changes in shape—with shape tweens. Masks provide a way to selectively show only parts of a layer. Together, they allow you to add more sophisticated effects to your animations.

Getting started

You’ll start the lesson by viewing the animated logo that you’ll create as you learn about shape tweens and masks in Adobe Animate.

Image Note

If you have not already downloaded the project files for this lesson to your computer from your Account page, make sure to do so now. See “Getting Started” at the beginning of the book.

  1. Switch to a web browser, choose File > Open File, and navigate to Lesson07/07End/07End.gif to play the finished animated GIF. An animated GIF is a single file that often combines multiple images as a looped animation, popular for Internet memes.

    Image

    The project is an animated logo for a fictional company intended as a profile image for different social media platforms. The animation shows a flame flickering at the top of the company name. Not only does the shape of the flame change constantly but so does the radial gradient fill inside the flame. A linear gradient sweeps across the letters of the company name from left to right. In this lesson, you’ll animate both the flame and the colors that move across the letters.

  2. Close your browser. Double-click the 07Start.fla file in the Lesson07/07Start folder to open the initial project file in Animate.

  3. Choose File > Save As. Name the file 07_workingcopy.fla and save it in the 07Start folder. Saving a working copy ensures that the original start file will be available if you want to start over.

Animating shapes

In the previous lessons, you learned to create animations with symbol instances. You could animate the motion, scale, rotation, color effect, or filters applied to symbol instances. You also learned to deform shapes and bitmaps with the Asset Warp tool and create internal armatures within shapes to move them with the Bone tool. However, those techniques don’t animate the actual contours of a graphic. For example, creating an animation of the slowly changing shape of clouds in the sky, or the deformation of a water droplet as it falls, is difficult with the Asset Warp or Bone tool and nearly impossible using motion or classic tweening with symbol instances (try it for a challenge!). You could draw each frame in a frame-by-frame animation, but that is difficult and time-consuming. To achieve something more organic, you can turn to shape tweening.

Shape tweening is a technique for interpolating stroke and fill changes between different keyframes. Shape tweens make it possible to smoothly morph one shape into another. Any kind of animation that requires the stroke or fill of a shape to change—for example, animation of smoke, water, or hair—is a perfect candidate for shape tweening.

Because shape tweening applies only to shapes, you can’t use groups, symbol instances, or bitmap images.

Understanding the project file

The 07Start.fla file is an ActionScript 3.0 document that contains most of the graphics already completed and organized in different layers. However, the file is static, and you’ll add the animation.

The text layer is at the very top and contains the company name, “Fire starter.” The flame layer contains the flame, and the bottom layer, called glow, contains a radial gradient to provide a soft glow.

Image

There are no assets in the library.

Creating a shape tween

To create the flickering flame effect, you’ll animate the undulating changes in a flame’s typical teardrop shape. You’ll rely on shape tweening to handle the smooth morphing from one shape to the next, as well as the gradual shifts in color. A shape tween requires at least two keyframes on the same layer. The beginning keyframe contains a shape drawn with the drawing tools in Animate or imported from Adobe Illustrator. The ending keyframe also contains a shape. A shape tween interpolates the smooth changes between the beginning keyframe and the ending keyframe.

Establish keyframes containing different shapes

In the following steps, you’ll animate the flame that will sit on top of the company name.

  1. Select frame 40 in all three layers and choose Insert > Timeline > Frame (F5).

    Forty frames are added to all three layers to define the overall length of the animation.

    Image
  2. Lock the text layer and the glow layer. This prevents you from accidentally selecting or moving the graphics in those layers.

  3. Select frame 40 in the flame layer and choose Insert Keyframe above the Timeline (or right-click and choose Insert Keyframe or choose Insert > Timeline > Keyframe [F6]). The contents of the previous keyframe in frame 1 are copied into the new keyframe.

    Image

    You now have two keyframes on the timeline in the flame layer, at frame 1 and at frame 40. Next, you’ll change the shape of the flame in the end keyframe.

  4. Select the Selection tool.

  5. Click away from the shape to deselect it. Move your cursor close to the outlines of the shape, and drag the contours of the flame to make the flame skinnier.

    Image

    The beginning keyframe and the ending keyframe now contain different shapes—a fat flame in the beginning keyframe, and a skinny flame in the ending keyframe in frame 40.

Apply the shape tween

Next, you’ll apply a shape tween between the keyframes to create the smooth transitions.

  1. Click any frame between the beginning keyframe and the ending keyframe in the flame layer.

  2. Press and hold the Create Tween button above the Timeline and choose Create Shape Tween. Or right-click, and choose Create Shape Tween or choose Shape Tween from the Insert menu.

    Image

    Animate applies a shape tween between the two keyframes, which is indicated by a black forward-pointing arrow and an orange fill in the tween span.

    Image
  3. Watch your animation by choosing Control > Play (Return/Enter) or by clicking the Play button at the top of the Timeline panel.

    Image

    You have created a smooth animation between the keyframes in the flame layer, morphing the shape of the first flame into the shape of the second flame.

Image Note

Don’t worry if your flame doesn’t morph exactly the way you want it to. Small changes between keyframes work best. Your flame may rotate while going from the first shape to the second. You’ll have a chance later in this lesson to refine the shape tweening with shape hints.

Changing the pace

The keyframes of a shape tween can be easily moved along the timeline to change the timing or pacing of the animation.

Moving a keyframe

The flame slowly transforms from one shape to another over a period of 40 frames. If you want the flame to make the shape change more rapidly, you need to move the keyframes closer together.

  1. Select the last keyframe of the shape tween in the flame layer.

    Image
  2. Make sure the box icon appears near your cursor as you drag the last keyframe to frame 6.

    The shape tween shortens.

    Image
  3. Press Return/Enter to play your animation.

    The flame flickers quickly and then remains static until frame 40.

Adding more shape tweens

You can add shape tweens by creating more keyframes. Each shape tween simply requires two keyframes to define its beginning state and its end state.

Insert additional keyframes

You want the flame to continually change shape, just as a real flame would. You’ll add more keyframes throughout the animation and apply shape tweens between all the keyframes.

  1. Select frame 17 in the flame layer and choose Insert Keyframe above the Timeline. Or choose Insert > Timeline > Keyframe (F6).

    The contents of the previous keyframe are copied into the second keyframe.

    Image
  2. Select frame 22 in the flame layer and choose Insert Keyframe (or F6) to copy the contents of the previous keyframe into the new keyframe.

    Image
  3. Continue inserting keyframes at frames 27, 33, and 40.

    Your timeline now has seven keyframes in the flame layer, with a shape tween between the first and second keyframes.

    Image
  4. Move the blue playhead to frame 17.

    Image
  5. Select the Selection tool.

  6. Click away from the shape to deselect it. Drag the contours of the flame to create another variation in its shape. You can make the base thicker, or change the curvature of the tip to make it lean left or right.

    Image
  7. Modify the flame shapes in each of the newly inserted keyframes to create subtle variations.

    Image

Extending the shape tweens

Your next step is to extend the shape tween so that the flame morphs from one shape to the next.

  1. Select any frame between the second and third keyframes, and choose Create Shape Tween. Or choose Insert > Create Shape Tween.

    Image

    A black forward-pointing arrow on an orange background appears between the two keyframes, showing that you’ve applied a shape tween.

    Image
  2. Continue to insert shape tweens between all the keyframes.

    You should have six shape tweens in the flame layer.

    Image
  3. Press Return/Enter to watch the animation play.

    Image

    Your flame flickers back and forth for the duration of the animation. Depending on how extensive your modifications to the flame have been, your flame may undergo some weird contortions between keyframes—for example, flipping or rotating unpredictably. Don’t worry! You’ll have a chance later in the lesson to refine your animation with shape hints.

Image Note

Try this shortcut: select a range of frames that cover multiple keyframes, right-click, and choose Create Shape Tween to apply a shape tween across all keyframes.

Creating a looping animation

Your flame should flicker back and forth continuously for as long as the logo is onscreen. You can create a seamless loop by making the first and last keyframe identical and putting the animation inside a graphic or a movie clip symbol. A movie clip timeline loops continuously, independently of the main timeline, while a graphic symbol plays as long as there are enough frames on the main timeline.

Duplicating keyframes

Make the first keyframe identical to the last keyframe by duplicating its contents.

  1. Right-click the first keyframe on the flame layer and select Copy Frames. Or choose Edit > Timeline > Copy Frames.

    Image

    The contents of the first keyframe are placed on your clipboard.

  2. Right-click the last keyframe on the flame layer and select Paste Frames. Or choose Edit > Timeline > Paste Frames.

    Image

    The first and last keyframes now contain identical flame shapes.

Image Tip

You can quickly duplicate keyframes by first selecting a keyframe and then Option/Alt-dragging the keyframe to a new position.

Previewing the loop

Use the Loop button at the top of the Timeline panel to preview your animation.

  1. Click the Loop button or choose Control > Loop Playback (Option+Shift+L/Alt+Shift+L) to enable continuous playback when you play the movie.

    Image

    Markers appear on the timeline header indicating the range of frames that loop during playback. Next, adjust the markers to extend the loop to include the entire movie.

  2. Drag the markers to include all the frames on your timeline (frames 1 through 40). Hold down the Command/Ctrl key while you’re dragging either marker to move both of them in equal amounts.

    Image
  3. Press Return/Enter to test the animation.

    The flame animation plays and loops continuously. Click the Pause button or press Return/Enter again to stop the animation. Deselect the Loop button at the top of the Timeline panel to hide the markers and end the loop playback mode.

Image Note

The Loop Playback option loops the animation only in the Animate authoring environment and not in the published animation.

Inserting the animation into a graphic symbol

When your animation plays in a graphic clip symbol, the animation loops automatically as long as there are sufficient frames on the main timeline.

  1. Select all the frames on the flame layer, right-click, and choose Cut Frames. Or choose Edit > Timeline > Cut Frames.

    Image

    The keyframes and shape tweens are removed from the timeline and placed on the clipboard.

  2. Choose Insert > New Symbol (Command+F8/Ctrl+F8).

    The Create New Symbol dialog box appears.

    Enter flame as the name of the symbol, and choose Graphic from the Type menu. Click OK.

    Image

    A new graphic symbol is created and opens in symbol-editing mode.

  3. Right-click the first frame on your graphic symbol timeline and choose Paste Frames. Or choose Edit > Timeline > Paste Frames.

    Image

    The flame animation from the main timeline is pasted into your graphic symbol’s timeline.

    Image
  4. Click the arrow button on the Edit bar at the top of the Stage to exit symbol-editing mode, or choose Edit > Edit Document (Command+E/Ctrl+E).

    You exit symbol-editing mode and return to the main timeline.

  5. Select the flame layer, which is currently empty. Drag your newly created flame graphic symbol from the Library panel to the Stage.

    Image

    An instance of the flame movie clip symbol appears on the Stage.

  6. Press Return/Enter.

    Animate plays the animation on the timeline. Since your graphic symbol contains 40 frames and the main timeline contains 40 frames, the entire animation of the flame flickering fits into the main timeline.

Image Note

The reason why we’re using a graphic symbol rather than a movie clip symbol to create the looping animated flame is that movie clip timelines do not get included in exported animated GIFs, and the last exercise in this lesson will involve publishing this file as an animated GIF.

Using shape hints

Animate creates the smooth transitions between keyframes of your shape tween, but sometimes the results are unpredictable. Your shapes may go through strange contortions, flips, and rotations to get from one keyframe to another. You may like the effect, but more often than not you’ll want to maintain control of the transformations. Using shape hints can help refine the shape changes.

Shape hints force Animate to map points on the start shape to corresponding points on the end shape. By placing multiple shape hints, you can more precisely control how a shape tween appears.

Adding shape hints

Now you’ll add shape hints to the shape of the flame to modify the way it morphs from one shape to the next.

Image Tip

Shape hints should be placed on the edges of shapes.

  1. Double-click the flame graphic symbol in the library to enter symbol-editing mode. Move the playhead to frame 1 of the shape tween in the flame layer.

    Image
  2. Choose Modify > Shape > Add Shape Hint (Command+Shift+H/Ctrl+Shift+H).

    A red-circled letter “a” appears on the Stage. The circled letter represents the first shape hint.

    Image
  3. Select the Selection tool and make sure that Snap To Objects in the Doc tab of the Properties panel is selected.

    Snap To Objects ensures that objects snap to each other when being moved or modified.

  4. Drag the circled letter to the tip of the flame.

    Image
  5. Choose Modify > Shape > Add Shape Hint again to create a second shape hint.

    A red-circled “b” appears on the Stage.

    Image
  6. Drag the “b” shape hint to the bottom of the flame shape.

    Image

    You have two shape hints mapped to different points on the shape in the first keyframe.

  7. Select the next keyframe of the flame layer (frame 6).

    A corresponding red-circled “b” appears on the Stage, hiding an “a” shape hint that is directly under it.

    Image
  8. Drag the circled letters to corresponding points on the shape in the second keyframe. The “a” hint goes on the top of the flame, and the “b” hint goes on the bottom of the flame.

    The shape hints turn green, indicating that you’ve correctly placed them so that they correspond to equivalent locations in the first keyframe.

    Image
  9. Select the first keyframe.

    Note that the initial shape hints have turned yellow, indicating that they are correctly placed. When placed properly, the shape hints in the beginning keyframe turn yellow and those in the ending keyframe turn green.

    Image
  10. Scrub the playhead through the first shape tween on the timeline to see the effect of the shape hints on the shape tween.

    The shape hints force the tip of the flame in the first keyframe to map to the tip of the flame in the second keyframe and force the bottoms to map to each other. This restricts the transformations.

    Image

    To demonstrate the value of shape hints, you can deliberately create a mess of your shape tweens. In the end keyframe, put the “b” hint at the top of the flame and the “a” hint at the bottom.

    Animate forces the tip of the flame to tween to the bottom of the flame and vice versa. The result is a strange flipping motion as Animate tries to make the transformation. Put the “a” back at the top and the “b” back at the bottom after you’re done experimenting.

Image Tip

You can add a maximum of 26 shape hints to any shape tween. Be sure to add them consistently in a clockwise or counterclockwise direction for best results.

Removing shape hints

If you’ve added too many shape hints, you can easily delete the unnecessary ones. Removing a shape hint in one keyframe will remove its corresponding shape hint in the other keyframe.

  • If you want to remove a shape hint, drag an individual shape hint entirely off the Stage and pasteboard.

  • If you want to remove all shape hints, choose Modify > Shape > Remove All Hints.

Previewing animations with onion skinning

It’s sometimes useful to see how your shapes are changing from one keyframe to another on the Stage all at once. Seeing how the shapes gradually change lets you make smarter adjustments to your animation. You can do so using the onion skinning option, available at the top of the Timeline panel.

Onion skinning shows the contents of the frames before and after the currently selected frame.

The term “onion skin” comes from the world of traditional hand-drawn animation, in which animators draw on thin, semitransparent tracing paper known as onionskin. A light box shines a light behind the drawings to allow them to be seen through several sheets. When creating an action sequence, animators flip back and forth quickly between drawings held between their fingers. This allows them to see how the drawings smoothly connect to each other.

Turning on onion skinning

The Onion Skin button is above the Timeline, allowing you to toggle it on or off. Pressing and holding the Onion Skin button displays additional options.

  1. Click the Onion Skin button at the top of the Timeline panel.

    Image

    Animate shows several shapes for the flame, representing the shapes in previous and future frames. Seeing multiple frames all on the Stage at once allows you to compare the changes between frames. The currently selected frame is in red. The previous frames are shown in blue, and the future frames are shown in green. The outlines of the flame fade the farther away they are from the current frame.

    Image

    On the timeline, Animate displays markers to bracket your currently selected frame. The blue-marked bracket (to the left of the playhead) indicates how many previous frames are shown on the Stage, and the green-marked bracket (to the right of the playhead) indicates how many future frames are shown.

    Image
  2. Move the playhead to a different frame.

    Animate keeps the markers around the playhead no matter where you move it, always showing the same number of frames behind and ahead.

Image Tip

You can even scrub the playhead back and forth along the timeline to see the ghostly images of the onion skins moving along with the animation. You cannot see onion skins during normal playback, however.

Adjusting the markers

You can move either marker to show more or fewer onion skin frames.

  • Drag the blue marker to adjust the number of past onion skin frames shown.

  • Drag the green marker to adjust the number of future frames displayed.

  • Hold down Command/Ctrl while dragging either marker to move the past and future markers in equal amounts.

  • Hold down Shift while dragging either marker to move the onion skin range to a different spot on the timeline (as long as it still encompasses the playhead).

  • Press and hold the Onion Skin button at the top of the Timeline panel and choose Anchor Markers. With the Anchor Markers option enabled, you can move your playhead on the Timeline and the bracketed onion-skinned frames will remain locked in place.

    Image
  • Press and hold the Onion Skin button at the top of the Timeline panel and choose All Frames. With the All Frames option enabled, the brackets will automatically move to cover the first frame and the last on the Timeline.

    Image

Advanced onion skin options

If you don’t like the blue and green color coding of previous and future frames, or you want to change the opacity of the onion skins, you can change them in the advanced settings.

  • Press and hold the Onion Skin button at the top of the Timeline panel and choose Advanced Settings.

    Image

    The Onion Skin Settings dialog box appears.

Image

You can fine-tune how the onion skin frames appear by adjusting the following settings:

  • Choose the previous or future frame range numerically.

  • Click the color swatches to change the color of the previous or future frames.

  • Choose between seeing the onion skin frames only as outlines, as shown here, or fully rendered.

    Image
  • Move the opacity sliders to change the starting opacities and how quickly the onion skin frames fade.

  • Choose to see only keyframes.

  • Anchor the frame markers.

    Image Note

    Animate remembers the most recent preferences set in the Onion Skin Settings panel. Clicking the Onion Skin button above the Timeline will toggle onion skins with those settings on and off.

Animating color

Shape tweens interpolate all aspects of a shape, which means that both the stroke and fill of a shape can be tweened. So far, you’ve modified the stroke, or outlines, of the flame. In the next section, you’ll modify the fill so that the color gradient can change—perhaps the flame will glow brighter and more intensely at some points in the animation.

Adjusting the gradient fills

Use the Gradient Transform tool to change the way the color gradient is applied to a shape, and use the Color panel to change the actual colors used in a gradient.

  1. If you’re not already in symbol-editing mode for your flame symbol, double-click the flame graphic symbol in the library to edit it.

  2. Select the second keyframe on the flame layer (frame 6).

  3. Select the Gradient Transform tool, which is grouped with the Free Transform tool in the Tools panel.

    The control points for the Gradient Transform tool appear on the gradient fill of the flame. The various control points allow you to stretch, rotate, and move the focal point of the gradient within the fill. (The Stage color is shown in white so that you can better see the Gradient Transform tool control points.)

    Image
  4. Use the control points to tighten the color gradient into the base of the flame. Reduce the gradient’s size, make it wider, position it lower on the flame, and move the focal point (represented by a tiny triangle) of the gradient to one side.

    Image

    Your flame’s orange core appears lower and more intense because the colors are distributed in a smaller area.

  5. Move the playhead along the timeline between the first and second keyframe.

    The shape tween automatically animates the colors inside the flame as well as its contours.

  6. Select the third keyframe on the flame layer (frame 17). In this frame, you’ll adjust the actual color of the gradient.

  7. Select the Selection tool and click the fill of the flame on the Stage.

  8. Open the Color panel (Window > Color).

    The Color panel appears, showing you the gradient colors of the selected fill.

    Image
  9. Click the inner color marker, which is currently yellow.

  10. Change the color to a hot pink (#FF33CC).

    Image

    The center color of the gradient turns pink.

  11. Move the playhead along the timeline between the second and third keyframes.

    Image

    The shape tween automatically animates the center color in the gradient from yellow to pink. Experiment with the other keyframes by modifying the gradient fill and see what kinds of interesting effects you can apply to your flickering flame.

Image Note

Shape tweens can smoothly animate solid colors or color gradients, but they can’t animate between different types of gradients. For example, you can’t shape tween a linear gradient into a radial gradient.

Creating and using masks

Masking is a way of selectively hiding and displaying content on a layer. It enables you to control the content that your audience sees. For example, you can make a circular mask and allow your audience to see only through the circular area so that you get a keyhole or spotlight effect. In Animate, you put a mask on one layer and the masked content in a layer below it.

For the animated logo you’re creating in this lesson, you’ll make the text a little more visually interesting by using the text itself as a mask.

Define the mask layer

From the “Fire starter” text, you'll create a mask that will reveal an image of a fire beneath it.

  1. Return to the main timeline. Unlock the text layer. Double-click the icon in front of the text layer name, or select the text layer and choose Modify > Timeline > Layer Properties.

    The Layer Properties dialog box appears.

    Image
  2. Select Mask and click OK.

    Image

    Image Tip

    Masks do not recognize strokes, so use only fills in the mask layer. Text created with the Text tool also works as a mask.

    The text layer becomes a mask layer, indicated by the mask icon in front of the layer name. Anything in this layer will act as a mask for a masked layer below it.

    Image

    For this lesson, we’re using the text already in place as the mask, but the mask can be any filled shape. The color of the fill doesn’t matter. What’s important to Animate are the size, location, and contours of the shape. The shape will be the “peephole” through which you’ll see the content on the layer below. You can use any of the drawing or text tools to create the fill for your mask.

Image Note

Animate does not recognize different Alpha levels in a mask created on a timeline, so a semitransparent fill in the mask layer has the same effect as an opaque fill, and edges will always be hard. However, in an ActionScript 3.0 document, you can use ActionScript code to dynamically create masks that will allow transparencies.

Create the masked layer

The masked layer is always indented under the mask layer.

  1. Click the New Layer button, or choose Insert > Timeline > Layer.

    A new layer appears.

  2. Rename the layer fiery_effect.

    Image
  3. Drag the fiery_effect layer under the mask layer (named “text”) and a little to the right so that it becomes indented.

    Image

    The fiery_effect layer becomes a masked layer, paired with the mask layer above it. Any content in the masked layer will be masked by the layer above it.

  4. Choose File > Import > Import To Stage, and select fire.jpg from the 07Start folder. Then click Open.

    The bitmap image of fire appears on the Stage, and the words appear over the image.

    Image

Image Tip

You can also double-click a normal layer under a mask layer, or choose Modify > Timeline > Layer Properties, and select Masked to modify the layer into a masked layer.

See the effects of the mask

To see the effects of the mask layer on its masked layer, you must lock both layers.

  1. Click the Lock option for both the text layer and the fiery_effect layer.

    Image

    Both the mask and masked layers become locked. The shapes of the letters in the mask layer reveal parts of the image in the masked layer.

    Image

    Image Note

    You can have multiple masked layers under a single mask layer.

  2. Choose Control > Test.

    As the flame flickers above the text, the letters reveal the fiery texture in the layer below it.

Animating the mask and masked layers

The letters of your animated logo have more drama now that you’ve created a mask with an image of fire behind it. However, the client for this fictional project now demands that it have even more punch. Although she likes the look of the fiery letters, she wants an animated effect.

Fortunately, you can include animations in either the mask or the masked layer. You can create an animation in the mask layer if you want the mask itself to move or expand to show different parts of the masked layer. Or you can create an animation in the masked layer if you want the content to move under a mask, like scenery whizzing by a train window.

Adding a tween to the masked layer

To make the logo more compelling for your client, you’ll add a shape tween to the masked layer. The shape tween will move a glow from left to right for a portion of the movie under the letters.

  1. Unlock both the text layer and the fiery_effect layer.

    The effects of the mask and masked layer are no longer visible, but their contents are now editable.

  2. Delete the bitmap image of the fire in the fiery_effect layer.

  3. Select the Rectangle tool and open the Color panel (Window > Color).

  4. In the Color panel, make sure Fill Color is selected and choose Linear Gradient from the Color Type menu.

  5. Create a gradient that starts with red on the far left (#FF0000), goes to yellow in the middle (#FFFC00), and becomes red again on the far right (#FF0000). Make sure your Alpha is set to 100% so that the colors are not transparent.

    Image
  6. Create a rectangle in the fiery effect layer that encompasses the letters in the text layer.

    Image
  7. Choose the Gradient Transform tool, and click the fill of your rectangle to select it.

    The control handles for the Gradient Transform tool appear on the fill of the rectangle. We’ll use this tool to position the gradient off the Stage so that it can make a dramatic entrance.

    Image
  8. Drag the center point of the gradient so that the yellow color appears on the far left side of the Stage.

    Image

    The yellow glow will enter from the left and move to the right.

  9. Select frame 20 in the fiery_effect layer and choose the Insert Keyframe button above the Timeline (or F6).

    Image

    The contents of the previous keyframe are copied into the new keyframe.

  10. Select the last frame (frame 40) in the fiery_effect layer and choose the Insert Keyframe button above the timeline (or F6).

    Image

    The contents of the keyframe at frame 20 are copied into the new keyframe. You now have three keyframes in the fiery_effect layer.

  11. Make sure that your playhead is still in the last frame (frame 40).

  12. Drag the center point of the gradient far enough to the right so that the yellow color is just barely visible on the right side of the Stage.

    Image
  13. Select any frame on the timeline between the second and third keyframe in the fiery_effect layer, and choose Create Shape Tween above the timeline. Or, from the main menu bar, choose Insert > Shape Tween.

    The color gradient is shape tweened so that the yellow glow moves within the fill of the rectangle from left to right.

    Image
  14. Watch your animation by choosing Control > Test or by pressing Return/Enter.

    Image

    While the flame burns above the letters, a soft yellow glow flashes across the letters.

Easing a shape tween

Eases help your animation bear a sense of weight by enabling you to add an acceleration or deceleration component to its motion.

Image Note

The Motion Editor, which is the advanced panel integrated into the timeline that provides different ease types, is not available for shape tweens.

You can use the Properties panel to add an ease to a shape tween. Ease values range from −100, which indicates an ease-in, to 100, which indicates an ease-out. An ease-in makes the motion start off slowly. An ease-out slows down the motion as it approaches its ending keyframe.

Adding an ease-in

You’ll make the glow that flashes across the letters of the logo begin slowly and then pick up speed. The ease-in will help viewers take notice of the animation before it proceeds.

  1. Click anywhere inside the shape tween in the fiery_effect layer.

  2. In the Properties panel, enter -100 for the Easing Intensity value.

    Image

    Animate applies an ease-in effect to the shape tween.

  3. Make sure that your mask and masked layers are locked, and choose Control > Test to test your movie.

    Image Note

    As with classic tweens, you can apply more advanced eases or even custom eases. Click the Classic Ease button to access the additional ease options, or click the pencil icon to customize your ease curve.

    The soft yellow glow flashes across the letters, starting off slowly and then adding a little more sophistication to the entire animation.

Exporting the finished animated GIF

Your project is done, and you’ll export the animated GIF to be used as your client’s Facebook profile image.

  1. Choose File > Export > Export Animated GIF.

    Animate opens the Export Image dialog box. It shows a preview of the image and various options for optimizations. In the Preset area, make sure the Transparency option is unselected.

    Image
  2. In the Preset area, choose GIF from the Optimized File Format menu. Choose 0 from the Lossy menu and 256 from the Colors menu. This will maximize the quality of your image. You can select Selective and Diffusion for the other two menus. These options determine how the 256 colors are chosen and mixed to create the final image.

    Image
  3. In the Image Size area, keep all the values at their default settings. The Width and Height should match the original Stage size.

  4. In the last area, Animation, you can choose the type of looping behavior for your animated GIF. Select Forever, which will make your animated GIF loop endlessly. You can preview the animation by clicking the Play button. You can also examine each of the 40 frames individually by moving forward or backward one frame at a time.

    Image
  5. Click Save, and in the dialog box that appears, provide a filename and navigate to the 07End folder to save your animated GIF.

Review questions

1 What is a shape tween, and how do you apply it?

2 What are shape hints, and how do you use them?

3 What does the color-coding of the onion skin markers indicate?

4 How is a shape tween different from a motion tween?

5 What is a mask, and how do you create one?

6 How do you see the effects of a mask?

Review answers

1 A shape tween creates smooth transitions between keyframes containing different shapes. To apply a shape tween, create different shapes in an initial keyframe and in a final keyframe. Then, select any frame between the keyframes in the timeline and choose Create Shape Tween from the Create Tween button above the Timeline.

2 Shape hints are labeled markers that indicate how one point on the initial shape of a shape tween will map to a corresponding point on the final shape. Shape hints help refine the way the shapes will morph. To use shape hints, first select the initial keyframe of a shape tween. Choose Modify > Shape > Add Shape Hint. Move the first shape hint to the edge of the shape. Move the playhead to the final keyframe, and move the corresponding shape hint to a matching edge of the shape.

3 By default, Animate shows the onion skins in previous frames in blue and the onion skins in future frames in green. The onion skin in the currently selected frame is in red. The colors can be customized in the Advanced Settings options in the Onion Skin menu.

4 A shape tween uses shapes, whereas a motion tween uses symbol instances. A shape tween smoothly interpolates the change of stroke or fill of a shape between two keyframes. A motion tween smoothly interpolates the changes in location, scale, rotation, color effect, or filter effect of a symbol instance between two keyframes.

5 Masking is a way of selectively hiding and displaying content on a layer. In Animate, you put a mask on the top mask layer and the content in the layer below it, which is called the masked layer. Both the mask and the masked layers can be animated.

6 To see the effects of the mask layer on the masked layer, you must lock both layers, or test your movie by choosing Control > Test.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.136.234.163