In shape tweening, you draw a vector shape at one specific frame in the Timeline. And, change that shape or draw another shape at another specific frame. Animate then interpolates the intermediate shapes for the frames in between, creating the animation of one shape morphing into another.
Animate allows you to add shape tweens to uniform solid strokes and non-uniform fancy strokes. You can also add shape tweens to strokes enhanced using the variable width tool. Experiment with the shapes you want to use to determine the results. You can use shape hints to tell Animate which points on the beginning shape correspond to specific points on the end shape.
You can also tween the position and color of shapes within a shape tween.
To apply shape tweening to groups, instances, or bitmap images, break these elements apart. To apply shape tweening to text, break the text apart twice to convert the text to objects. See Break apart a symbol instance.
The following steps show how to create a shape tween from frame 1 to frame 30 of the timeline. However, you can create tweens in any part of the timeline that you choose.
Select frame 30 of the same layer and add a blank keyframe by choosing Insert > Timeline > Blank Keyframe or pressing F7.
On the stage, draw a circle with the oval tool in frame 30.
Now, you have a keyframe in frame 1 with a square and a keyframe in frame 30 with a circle.
In the Timeline, select one of the frames in between the two keyframes in the layer containing the two shapes.
Choose Insert > Shape Tween.
Animate interpolates the shapes in all the frames between the two keyframes.
To preview the tween, scrub the playhead across the frames in the Timeline, or press the Enter key.
To tween motion in addition to shape, move the shape in frame 30 to different location from frame 1.
Preview the animation by pressing the Enter key.
To add easing to the tween, select one of the frames and enter a value in the Ease field of the Property inspector.
To ease the beginning of the tween, enter a negative value. To ease the end of the tween, enter a positive value.
Ease presets are pre-configured eases that can be applied to an object on the stage.
A set of commonly used ease presets are available for shape tween. You can select the preset from a list of ease presets and apply it to the selected property. You can also apply a custom ease to a shape tween.
Click the layer that contains a shape tween in the timeline of Animate.
To open the tweening properties, click the Tweening category in the property panel.
Select the ease preset of your choice from the ease type pop-up dialog. Double-click the preset type to apply.
If you choose to apply classic ease, you can also increase or decrease the intensity of ease by moving the slider.
Click the edit icon next to Ease to apply a custom ease.
The Custom Ease dialog displays a graph representing the degree of motion over time. The horizontal axis represents frames, and the vertical axis represents percentage of change. The first keyframe is represented as 0%, and the last keyframe is represented as 100%.
The slope of the graph’s curve represents the rate of change of the object. When the curve is horizontal (no slope), the velocity is zero; when the curve is vertical, an instantaneous rate of change occurs.
You can save a custom ease and reuse it by choosing your customized ease from the Custom list. Click the Save and Apply button in edit mode after making the changes. In the following screenshot, you can find the customized ease preset with the name MyEase1.
You can use the preset eases across multiple spans in the timeline by selecting the corresponding spans and applying the ease.
To control more complex or improbable shape changes, you can use shape hints. Shape hints identify points that correspond in starting and ending shapes. For example, if you are tweening a drawing of a face as it changes expression, you can use a shape hint to mark each eye. Then, instead of the face becoming an amorphous tangle while the shape change takes place, each eye remains recognizable and changes separately during the shift.
Shape hints contain letters (a through z) for identifying which points correspond in the starting and ending shapes. You can use up to 26 shape hints.
Shape hints are yellow in a starting keyframe, green in an ending keyframe, and red when not on a curve.
For best results when tweening shapes, follow these guidelines:
In complex shape tweening, create intermediate shapes and tween them instead of just defining a starting and ending shape.
Make sure that shape hints are logical. For example, if you are using three shape hints for a triangle, they must be in the same order on the original triangle and tween triangle. The order cannot be a,b,c in the first keyframe and a,c,b in the second.
Shape hints work best if you place them in counterclockwise order beginning at the upper-left corner of the shape.
Select Modify > Shape > Add Shape Hint. The beginning shape hint appears as a red circle with the letter a somewhere on the shape.
Select the last keyframe in the tweening sequence. The ending shape hint appears as a green circle with the letter a somewhere on the shape.
Move the shape hint to the point in the ending shape that corresponds to the first point you marked.
To add more shape hints, repeat this process. New hints appear with the letters that follow (b, c, and so on).
Select View > Show Shape Hints. The layer and keyframe that contain shape hints must be active for Show Shape Hints to be available.
Drag it off the stage.
Select Modify > Shape > Remove All Hints.
Animate allows you to add shape-tween to strokes with variable width. Earlier, Animate only supported creating shape tweens for solid uniform strokes and shapes. This limited designers from creating shape tweens for non-uniform strokes, such as strokes enhanced using the variable width tool. Tweening strokes with variable width greatly expands the design possibilities within Animate.
Adding shape tweens to fancy strokes is not different from tweening a shape or a solid uniform stroke. The workflow needs that you define the start and final shape of the tween, and Animate creates the transitional frames of the tween.
Variable width tool allows you to enhance uniform solid strokes to create beautiful and fancy strokes.
In Animate CC, draw a line using the Line tool.
Use the Variable Width tool to add width at the middle of the stroke (see below figure). For information on using variable width tool, see Enhancing strokes using Variable Width Tool.
Select another frame on the timeline, for example frame 30, and create the final shape of the stroke for your tween.
Right-click any frame between 1 to 30, and select Create Shape Tween.
Animate also allows you to add shape tweens to fancy strokes saved as variable width profiles. You can apply width profiles to the start and final shapes of a tween, and allow Animate to create a smooth shape tween.
Width profiles are fancy strokes that are created and saved using variable width tool for easy reuse. To add shape tweens to variable width profiles, do the following:
In Animate, draw a line on stage using the Line tool.
On the Property inspector, select and apply a width profile from the Width drop-down.
Select another frame on the timeline, for example frame 30, and select a desired width profile from the width drop-down on Property inspector.
To add shape tween to the selected width profiles, right-click on any frame between 1 to 30, and select Create Shape Tween.