How to Create HTML5 Banner Animation in Adobe Edge

| August 16, 2011 | 7 Comments

Many people are having high expectations of the new HTML5 and its significant changes from the previous versions. Moreover, someeven say that the new trend in HTML can compete with the great rich media tools, such as Flash.

html5 adobe edgeHow to Create HTML5 Banner Animation in Adobe Edge

While Flash capabilities are more powerful and more extendable than the current version of HTML5, I do not see how it could compete with Flash. I believe both will have their own niche in the market, which I will try to cover in a further article in the following posts.

Edge is one of the new promising Adobe tools that make it possibleto create HTML5 animation through a timeline and an interface similar to other Adobe applications, such as After Effect. Thus, it makes creating HTML5 animation very easy for designers who do not have any experience with coding, and allows them to create HTML5 animation without having to write a single line of code.

In this tutorial, I will try to show you how to create aHTML5 banner animation in Adobe Edge using the timeline animation.

You can check the final preview of the HTML5 animated banner by clicking the link below:

previewHow to Create HTML5 Banner Animation in Adobe Edge

Preview HTML5 banner animation

Before starting the tutorial, you will need to download Adobe Edge from Adobe Labs on the following link:

http://labs.adobe.com/technologies/edge/

Also, you will need to have a basic knowledge of how animation is used in any of the Adobe tools, such as Photoshop, After Effects or Flash.

You can download the source file and the HTML5 example through the download button at the end of the tutorial.

Step1

Now, let us start by installing and opening Adobe Edge. From the File menu choose New File. From the Properties panel on the left, set the document width to 550 px and height to 150 px.

01How to Create HTML5 Banner Animation in Adobe Edge

Step2

Open the background color picker and set the background to light gray. Also, set the Overflow to Hidden to hide the objects that are off-screen.

02How to Create HTML5 Banner Animation in Adobe Edge

Step3

Choose Import from the File menu and open the PS.JPG, a Photoshop icon with 100px x 100px, and place it in the banner as seen below.

03How to Create HTML5 Banner Animation in Adobe Edge

Step4

Use the Text tool to write “Photoshop” like below. Increase the dimensions of the text area by dragging the edges and change the font size to 55px.

04How to Create HTML5 Banner Animation in Adobe Edge

Step5

Now, we will animate the Photoshop icon and the text through the timeline. The timeline in Adobe Edge is similar to other Adobe applications, such as After Effects. When you create an object on the stage, you will find that a separate layer is created for it in the timeline.

Each layer has sub-layers that include the properties of each layer. In order to create the animation, we will need to create keyframes that represent the change in layer content properties, such as size and position.

05How to Create HTML5 Banner Animation in Adobe Edge

In this example, we will click the arrow next to the Photoshop icon image to extend the sub-layers. Notice that there are only two sub-layers to control the X and Y positions for the image.

Step6

With the timeline indicator positioned at the beginning of the timeline, move the Photoshop icon image to the top of the stage as below.

06How to Create HTML5 Banner Animation in Adobe Edge

Step7

Move the timeline indicator by a few frames and drag the Photoshop icon image to its final position in the stage as below. Notice that that area between the two keyframes has changed in color to indicate that there is an animation for the layer content.

07How to Create HTML5 Banner Animation in Adobe Edge

Step8

Move the timeline indicator back to the first frame and select the text on the stage. From the Properties panel, set the Opacity value to zero.
Notice that a new properties panel is created to represent the Opacity value in the timeline.

08How to Create HTML5 Banner Animation in Adobe Edge

Step9

Move the timeline indicator to the end of the Photoshop icon animation. Set the Opacity value to 100%

09How to Create HTML5 Banner Animation in Adobe Edge

Step10

In the text animation layer, click the green area that represents the animation and drag it to the right, as in the figure below, to make a delay between the appearing of the Photoshop icon and the text.

10How to Create HTML5 Banner Animation in Adobe Edge

Step11

Now, we will add the second icon and text to the animation.  Move the timeline indicator on the timeline as in the figure below. Then, from the File menu choose Import and navigate to FL.JPG. Place it on top of the Photoshop icon as below:

11How to Create HTML5 Banner Animation in Adobe Edge

Step12

With the timeline indicator in the same position, select the Photoshop icon image and set its Opacity to 95%, you will notice that a sub-layer for the Opacity value is added to the Photoshop icon layer in the timeline.

12How to Create HTML5 Banner Animation in Adobe Edge

Step13

Move the timeline indicator and from the stage, add the Flash icon image above the Photoshop icon. Select the Photoshop icon and set its opacity to 0%.

13How to Create HTML5 Banner Animation in Adobe Edge

Next, we will use the same technique to remove the text “Photoshop” and replace it with the text “Flash”, as we will see below:

Step14

Move the timeline indicator to the beginning of the Flash icon animation and select the text “Photoshop”. In the Opacity property sub-layer, click the small dot on the right to create a keyframe.

14How to Create HTML5 Banner Animation in Adobe Edge

Step15

With the timeline indicator in the same position, use the Text tool to write the text, “Flash”. And set its opacity to 0%. Position it above the text “Photoshop” text to replace it.

15How to Create HTML5 Banner Animation in Adobe Edge

Step 16

Move the timeline indicator where the animation of the Flash icon ends. Set the Opacity for the Photoshop text to 0% and the Flash text to 100%

16How to Create HTML5 Banner Animation in Adobe Edge

Step17

Repeat the steps above with the AI.JPG Illustrator icon by hiding the Flash icon and the text and replace it with the Illustrator icon and text as above.

17How to Create HTML5 Banner Animation in Adobe Edge

Step18

Save the file and you can preview it in the browser from the File > Preview in Browser. You can preview the animation by clicking the link here.

previewHow to Create HTML5 Banner Animation in Adobe Edge

In this tutorial, we saw how to create a simple HTML5 animation using Adobe Edge. Although the tool is simple, it can be helpful for creating animation, especially because in HTML5 it would be more difficult to create animation using manual coding.

You can use the same concept to create your own animation and HTML5 banners.  You can download the source file for this HTML5 animation below.


If you are already a Premium Member then just sign in and you can download source file for this tutorial.

Not a member? Sign up today or read more about our Premium Member area.

download nonmemberHow to Create HTML5 Banner Animation in Adobe Edge

Tags: , ,

Category: HTML5

About the Author ()

Rafiq Elmansy is a graphic designer and runs his own design studio Pixel Consultations. He is also an Adobe Community Professional, Certified Expert and Adobe user group manager. He is a Friend of Icograda (the International Council of Graphic Design Associations).You can read his writings on Adobe site, Adobe Edge magazine, communitymx.com and his own blog www.graphicmania.net. He can also be followed on Twitter @rafiqelmansy

Comments (7)

Trackback URL | Comments RSS Feed

  1. MabZziCLe says:

    sounds interesting..but i really need to download Adobe Edge hmmmm

  2. follow the link in the beginning of the article to download Adobe Edge from Adobe Labs.

  3. smyth says:

    Hello, nice tutorial on the animated banner. Do you know how to add simple control buttons that would pause and play the animation?

  4. Sadly, the current version of Adobe Edge does not support adding actions or code. I think it is still in the early stages and this may be added later.

  5. Nice post Rafiq, it certainly is worth looking after. Seems like the preview I’m working in now only has about 20 days left, so the release will be welcomed.

    Im wondering what price tag we will see

  6. kyle says:

    Nice tutorial.
    My problem is that I don’t know how to make it to run in a loop. After spending some hours trying to achieve that, I gave up…Any help will be appreciate. Today I found this banner: http://www.flashxml.net/banner-rotator.html that looks pretty good and meets my requirements. It’s Flash, this could be an issue for Apple devices but if I can’t find a solution, certainly I will use it on my website.

  7. I was able to create a HTML5 banner, the question is how would I put it in my HTML code along with other banners, this is set a a list of ads on the right side of a website (joomla based)
    Thanks

Leave a Reply