Publishers of technology books, eBooks, and videos for creative people

Home > Articles > Design > Adobe Creative Suite

Like this article? We recommend Layers, Blends, Animation!

Layers, Blends, Animation!

If you've ever done any Flash animation, you're familiar with the concepts of frames and keyframes. Since Illustrator isn't an animation program, it doesn't have frames; instead, it uses layers to contain the objects to be animated. Blending the start and end objects creates the "tweens"—the layers between the beginning and the end of the animation. Each segment of the animation goes on its own layer and is then exported to frames. If you'd like to follow along, download the starter file and open it. (The zip also includes the final file, so you can refer to it if you get stuck.)

Animating the Tap Event

The first thing to do is to set up your layers. For this interaction, we want to capture the tap event, the expanding tab, and the fade-in of the tab content. Each of these events goes on a separate layer. We'll start with the tap animation:

  1. Open the Layers panel and click the Add New Layer button at the bottom of the panel (see Figure 2).
  2. Figure 2 Adding a new layer in the Layers panel.

  3. Double-click the title of the new layer and rename it info animation (see Figure 3). Then add two more layers, naming them expand and tap. Make sure that the layers are in the order shown in Figure 3, so the animation will happen in the right order. When the animation is exported, Illustrator will create the frames in order from the top layer down.
  4. Figure 3 Double-click a layer name to rename it.

    Figure 4 Each animation event gets its own layer.

  5. Click the "tap" layer to make it active. With the Ellipse tool (press L), draw a circle of 44 x 44 pixels and place it toward the middle-right side of the screen, as shown in Figure 5. This circle will represent a fingertip. Give the circle a black fill and an opacity of 50%. This will be the starting point of the tap animation.
  6. Figure 5 Creating the starting point of the finger-tap animation.

  7. With the circle still selected, copy it and paste it to position another circle on top of the first athlete's tile, as shown in Figure 6.
  8. Figure 6 The ending point of the animation comes next.

  9. Select both circles; then choose Object > Blend > Make. The default blend setting is Smooth Color. We need to change this to a specified number of steps to determine how many frames of animation the blend will take. To do this, double-click the Blend tool (see Figure 7) and change the drop-down Spacing setting to Specified Steps.
  10. Because we plan to export the animation with a frame rate of 30 fps, set the number of steps to 30. so the finger movement and tap will happen in one second (see Figure 8). When you're done, click OK to exit the dialog. Figure 9 shows the finished blend objects.
  11. Figure 7 Double-click the Blend tool to set the number of steps in the blend.

    Figure 8 Setting the number of blend steps.

    Figure 9 Finished blend for the finger-tap animation.

  12. Finish off this process by hiding the "tap" layer so you can work on the next piece of the animation without distraction. (Click the eye icon next to the layer to turn off its visibility.)

Expanding the Tile

Now let's move on to expanding the athlete tile. For this animation, we'll turn the upper-left tile into a symbol with 9-slice scaling enabled. This technique will allow us to animate the tile and the triangle at the same time. Here's how it's done:

  1. Select all elements of the John Doe tile in the upper-left corner of the screen (see Figure 10). Press Command-C (Windows: Ctrl-C) to copy the objects. Then click the "expand" layer in the Layers panel and press Command-Shift-V (Windows: Ctrl-Shift-V) to paste the objects into place on the layer.
  2. Figure 10 Copy-and-paste the tile and its contents into the "expand" layer.

  3. Select the tile rectangle and the arrow in the lower-right corner (see Figure 11) and press F8 to make these objects into a symbol. Name this new symbol athlete tile and make sure that 9-Slice Scaling guides are enabled, as shown in Figure 12. This option will allow us to resize the symbol more easily. Click OK to save the new symbol.
  4. Figure 11 Turn this tile into a symbol to make it easier to animate.

    Figure 12 Naming the symbol.

  5. We need to adjust 9-slice scaling guides for this symbol. Double-click the symbol to enter isolation mode. Then arrange the guides so the small triangle doesn't distort when you resize the symbol (see Figure 13). When you're finished, press Escape to exit isolation mode.
  6. Figure 13 Setting 9-slice scaling guides to protect the little corner arrow from stretching.

  7. Select the symbol and press Command-C (Windows: Ctrl-C) to copy the tile. Then press Command-B (Windows: Ctrl-B) to paste the copy behind the original. Now you can use the Free Transform tool (press E) to resize the copy so that it fills part of the screen (see Figure 14).
  8. Figure 14 Transform the bottom tile to its expanded position.

  9. Select both objects and create the blend by pressing Command-Option-B (Windows: Ctrl-Alt-B). Double-click the Blend tool again and change the number of steps to 15 so that the "expand" animation will last a half-second.
  10. Because this animation consists of more than just one object, we need to release the blend to layers. To do so, click the disclosure triangle on the "expand" layer to show the sublayer where the blend is located (see Figure 15).
  11. Figure 15 Select the blend to be released to layers.

  12. Click the Blend layer to select it, and then select Release to Layers (Sequence) from the Layers panel menu (see Figure 16). This action breaks the blend apart and puts each stage of the blend on a separate sublayer (see Figure 17). When the file is exported as a Flash SWF, each of these layers will become an animation frame.
  13. Figure 16 The Release to Layers command breaks the blend apart and puts each step on its own layer.

    Figure 17 The expanded blend.

  14. The athlete name and position need to be part of the animation, so we'll need to put a copy of those objects into each layer. With keyboard shortcuts, it's simple to do: Select the name and position text and press Command-X (Windows: Ctrl-X) to cut it to the clipboard. In the Layers panel, click the first layer in the animation and press Command-Shift-V (Windows: Ctrl-Shift-V) to paste the text into place (see Figure 18). We'll need to repeat the paste step for every layer in the animation.
  15. Figure 18 Select a layer and press Command-Shift-V (Windows: Ctrl-Shift-V) to paste objects into it.

  16. Before we hide this layer, we need to copy the largest tile symbol—the athlete's name and position—in the expand animation so we can use them in the next step. Select those objects (see Figure 19) and then press Command-C (Windows: Ctrl-C) to copy them to the clipboard. Then hide the "expand" layer and move to the next step.
  17. Figure 19 Select the biggest tile and copy it to the clipboard for the next step.

Fading in Expanded Information

This will be the final step before we export our animation. To finish this interaction, we need to show the content within this tile. We want to fade it in over a half-second after the tile has expanded. First we need to create the tile details and make the whole thing a symbol:

  1. We need to paste the objects we copied in the preceding section. To do this, select the "info" animation layer and press Command-Opt-V (Windows: Ctrl-Alt-V) to paste the objects into place.
  2. Let's create some content for this tab that will fade in. Once we have the wireframe done, we'll select it and create a symbol, as shown in Figure 20.
  3. Figure 20 Create a symbol with the tile contents.

  4. To create the starting keyframe for this animation, press Command-C (Windows: Ctrl-C) to copy the symbol and then Command-B (Windows: Ctrl-B) to paste the duplicate directly behind the original. Using the Appearance panel, change the opacity of the bottom object to 0%.
  5. Time for the animation! To select the two symbols to be blended, we'll use the Layers panel. Hold down the Shift key and click the blank area in the right side of each layer. A little square indicates that they're selected (see Figure 21).
  6. Figure 21 Using the Layers panel to make a complex selection.

  7. Press Command-Opt-B (Windows: Ctrl-Alt-B) to create the blend, and then double-click the Blend tool to change the number of steps to 12.
  8. Release this blend to layers by selecting Release to Layers (Sequence) from the Layers panel menu.
  9. As with the expand animation, we need to copy-and-paste the athlete's name, position, and bottom tile into each layer of the blend so that they're part of the animation. This is the trickiest part, since the tile is below the info, and the name and position are on top. This will be a two-step process for each layer in the animation.

  10. For the first step, we need to copy-and-paste the athlete's name and position above the tile content. Select the name and position text and press Command-X (Windows: Ctrl-X) to cut it to the clipboard. In the Layers panel, click the first layer in the animation and press Command-Shift-V (Windows: Ctrl-Shift-V) to paste the text into place (see Figure 22). We'll need to repeat the paste step for every layer in the animation.
  11. Figure 22 Paste the athlete's name and tile into each step of the animation.

  12. Select the expanded tile symbol (see Figure 23) and cut it to the clipboard by pressing Command-X (Windows: Ctrl-X).
  13. Figure 23 This tile must be copied, pasted, and moved to the back of each animation layer in this step.

  14. Select the first layer in this animation and press Command-Shift-V (Windows: Ctrl-Shift-V) to paste the athlete tile into place, and then press Command-Shift-[ (Windows: Ctrl-Shift-[) to move it to the bottom of the stack. Do this for each layer in the animation.

That finishes the animation! Now we can move on to exporting the file to a Flash SWF.

Peachpit Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from Peachpit and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about Peachpit products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites; develop new products and services; conduct educational research; and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email ask@peachpit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by Adobe Press. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.peachpit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020