navigate site menu

Start learning with our library of video tutorials taught by experts. Get started

Create a Homepage Marquee with Edge Animate

Create a Homepage Marquee with Edge Animate

with Chris Converse

 


This step-by-step project demonstrates how to create an interactive homepage marquee using Adobe Edge Animate, a tool for creating smooth motion and transitions for multiple screen sizes, and a combination of HTML5, CSS, and a little custom jQuery. Author Chris Converse shows how to build the buttons, captions, and navigation elements; detect rollovers and other interactions; animate the artwork and effects; and ensure your design works equally well with mobile and tablet layouts.
Topics include:
  • Setting up your project
  • Creating buttons and converting them to symbols
  • Animating symbols
  • Detecting a mouse rollover on the stage
  • Writing and running custom JavaScript functions
  • Creating custom interactions with jQuery
  • Styling buttons and navigation elements with CSS
  • Creating a rollover effect with jQuery
  • Adding and removing custom debugging code

show more

author
Chris Converse
subject
Design, Developer, Web, Web Graphics, Interaction Design, Animation, Web Design, Projects, Web Development
software
Edge Animate 1
level
Intermediate
duration
1h 8m
released
Mar 12, 2013

Share this course

Ready to join? get started


Keep up with news, tips, and latest courses.

submit Course details submit clicked more info

Please wait...

Search the closed captioning text for this course by entering the keyword you’d like to search, or browse the closed captioning text by selecting the chapter name below and choosing the video title you’d like to review.



Introduction
Previewing the final project
00:00(music playing)
00:04Hi! I am Chris Converse and this is a course on creating an animated homepage marquee for
00:07your website using Adobe Edge Animate.
00:10This project is going to feature a few nice interactive user experiences. One, if the
00:14user rolls their mouse inside of the marquee, it will stop the automatic animation so the
00:18user can interact with navigation buttons or the Learn More buttons.
00:22When we resize the browser, the design is also going to conform to the browser size,
00:26giving us a responsive design technique that's going to be useful for multiple size screens.
00:31And we will also be linking the navigation to the timeline, so users can click on the
00:35navigation items and jump to any panel that they want to see.
00:39So I hope this course sounds interesting to you, and if so, let's get started.
Collapse this transcript
About the exercise files
00:00Now if you are a premium subscriber to the lynda.com online training library you will
00:03have access to the exercise files included in this course.
00:07If not, you can retreat similar background graphics, making your graphics 980 pixels x 300 pixels.
00:13You can use Photoshop or any other image editing tool, and you can use any standard web graphic format.
00:18I'm going to be using JPEGs, which you can see in this folder here, but you can also use
00:22GIF files or PNG files.
00:24So now that we are familiar with the exercise files, next we will start creating our project.
Collapse this transcript
1. Setting Up Your Project
Creating a new project in Edge Animate
00:00To begin our project let's create a folder on the desktop.
00:05We will call this myMarquee.
00:08I am going to resizes this and move it over to the right-hand side of the screen.
00:13I want you to be able to see the files that Edge Animate is going to build as we progress
00:17through the project.
00:19Now with the folder created, let's come down and launch Edge Animate.
00:23Now, to create a new project in Edge Animate you can use the Splash screen and click Create
00:26New, or you can come to the File menu and choose File > New.
00:30In either case, we are going to get a brand-new default Edge composition.
00:34So the first thing we are going to do is change the Stage properties. First let's come over
00:37here to the Width. Let's come over here to the Pixels tab here. Let's change that to
00:41percent. We want the canvas to be 100% wide inside of the browser. This will give us a
00:47foundation to be able to add responsive techniques to our composition.
00:50For Height, let's come down and change this to 300 High. This matches the background graphics
00:56that we created inside of Photoshop.
00:58Under Minimum Width, let's come down here and let's change this to 500 pixels. We never
01:03want our composition to be less than 500 wide. And for the Maximum Width, let's come down
01:08and change this to 980 pixels--again, matching the size of the graphics we created.
01:14Overflow we are going to leave at Hidden. This way anything that's larger or outside
01:18of the Main Stage will be clipped by the div containing this element. And then we are going
01:22to leave Autoplay on.
01:25Now with these settings in place, let's choose File > Save As. From the Desktop, let's choose
01:32to myMarquee folder, and for the file name let's call this marquee.html, then hit Save.
01:39Now to see what Edge Animate created, let's come back to the operating system. Let's go
01:43in to the myMarquee folder. We see here the marquee.html file. This is the file that we
01:48originally saved from Edge, but Edge also created a source.an file. This is the Edge
01:53Animate file where we are going to do our work.
01:56We also have three JavaScript files that relate to this particular project
01:59and an edge_includes folder, which has all of the JavaScript files necessary for the entire framework.
02:05So now that we have our project created and saved, next we are going to look at adding
02:07the images into our project.
Collapse this transcript
Adding images to your project
00:00Now that we have our composition created in the myMarquee folder on the desktop, what
00:03we are going to do here is add our images into the myMarquee folder.
00:07Edge Animate is always paying attention for this particular project to this myMarquee
00:11folder, very much the way a web browser looks at a particular directory on your computer or on a server.
00:17So inside of the myMarquee folder, let's come in here and create an images directory.
00:24With the images directory created, let's come back to the Exercise Files, let's grab panel1,
00:29panel2, and panel3.jpg, or again, you can use your custom graphics that you've created, and let's drag
00:34of these into the images directory.
00:36So now we have an images directory with all of these JPEGs inside of the myMarquee folder.
00:41Let's switch back over to Edge Animate.
00:43Now, in some cases, Edge Animate will update automatically and you will see those graphics
00:47in the Assets panel. If that's not happening for you--which, it's not happening from either--
00:52let's close the marquee.html file.
00:55Then from the Splash screen under the Recent Files, let's just simply open it again.
01:00Each time you open your composition in Edge Animate it will look into the source project
01:03folder and look for any additional assets.
01:06So here we can see, under the Assets section of the Library panel, an images directory
01:10with the three different graphic showing up here.
01:13So now that our images are recognized by Edge Animate,
01:15next, we'll look at creating symbols out of these graphics.
01:18
Collapse this transcript
Creating symbols for the panel artwork
00:00Now for this project we are going to be making use of a feature called symbols inside of
00:04Edge Animate, and we are going to create a series of symbols and nest them inside of each other.
00:08So to start, we want to create a series of symbols from our background graphics.
00:11So first, let's come over to the Library panel. Under Assets and images, let's grab panel1.jpg
00:16and just drag and drop it onto the stage. Once it's on the stage, you can click and
00:20drag it. I am going to move it to the upper left-hand corner until it snaps into place.
00:25We can see up here in the Properties panel, this is an image, and what I want to do now
00:29is convert this into a symbol.
00:30I can do that either by right-clicking and coming down and choosing Convert to Symbol
00:35or we can come up to the Modify menu and choose Convert to Symbol.
00:43Let's name this panel_01_photo and then click OK.
00:48So in the Library panel we'll see we have our Assets with the images, and then under
00:52Symbols we have a brand-new symbol here called panel_01_photo.
00:56So what this does is it allows me place this symbol any number of times along my timeline
01:01and then simply editing the one symbol will update all instances of that symbol.
01:05You will also notice down in the Timeline panel we now have a brand-new layer here called panel_01_photo.
01:10So let's do the same thing for the other two graphics.
01:14Let's grab panel2.jpg and just drag it on the stage. Let's move it till it snaps into
01:18the upper-left. We will right-click, choose Convert to Symbol. We will call this panel_02_photo, click OK.
01:31Let's come up to the images directory. Let's grab panel3.jpg, align that to the upper-left.
01:39Let's right-click, Convert to Symbol. We will call this panel_03_photo, then choose OK.
01:49So now we can see we have three symbols in the Symbols panel, and we have three new layers
01:53in our Timeline panel: panel_01_photo, panel_02_photo, and panel_03_photo.
01:58So now with our three artwork-based symbols created, next, we will work on animating these
02:02across the timeline.
Collapse this transcript
Animating the panel artwork
00:00Now, to animate the background photos, let's make a few adjustments. Let's come down to
00:04our Timeline panel.
00:06Now down on the right-hand corner is the magnification of the Timeline.
00:09Here on the timeline I can see 3 seconds.
00:11If I come down here and make this smaller, I can add more seconds, so I can see more of the timeline.
00:17I am going to move this down to the point where I can still see individual seconds,
00:21but this will give me up to 12 seconds.
00:23I am also going to come in here between the stage and the timeline and just make my timeline
00:28a little bit taller.
00:33And over on the Timeline panel, on the left-hand side let's come over and let's hide panel2
00:37and panel3, so that I can only see panel1.
00:41Now let's come up to the Stage. Let's select panel1. I can tell this is selected by seeing
00:46the highlight down here in the Timeline panel.
00:48I can also tell by the panel 01_ photo selected in the Properties panel.
00:52So now that I know I have the first photo selected, let's grab the timeline. Let's drag
00:56this out to 1 second.
00:59In the Timeline panel let's make sure you have turned off Auto-Keyfame and Auto-Transition.
01:03These should all be gray. We are going to manually set some of the transitions here.
01:08And so at the 1 second mark, with panel_01_ photo selected, let's come to the Properties panel
01:13and let's activate Keyframe for Opacity.
01:16Let's come down here and change the Opacity to 0.
01:20Next, let's move the playhead out to 2 seconds. Let's activate another keyframe. Let's move this up to 100%.
01:31Select the first keyframe, right-click, and choose Create Transition. Now if I drag
01:35the playhead here, we can see we've created an animation across 1 second.
01:38Now, if you don't like the white being in the background, let's simply come up here, let's
01:44click in the negative area here to select the Stage, let's come over here to the swatch
01:49for background, let's come down and change this to black, hit Return or any other color,
01:55let's come back to the timeline, let's jog the animation, and we can see that we have
01:58a photograph that fades up from black instead of white.
02:02Now, with the first animation in place, let's grab the playhead. Let's drag this out to 6 seconds.
02:08Let's come over to the label for panel_02. Let's turn on the Visibility. Let's select
02:15this. Let's come up to the Properties panel. Let's activate a keyframe for Opacity here as well.
02:22With that activated, let's come down and scrub this down to 0, drag the playhead out from
02:286 to 7, activate another keyframe, animate this up 100, select the first keyframe, right-click, and
02:38choose Create Transition.
02:41So now from 6 to 7 seconds we will see the second photo fades in, giving us a cross-fade effect.
02:47Next, let's grab the playhead. Let's drag this out to 12 seconds. Let's come over and
02:54show panel_03_photo. Let's select this layer, activate a keyframe for Opacity. We will set
03:02this down to 0. Let's grab the playhead.
03:05Now if we drag this out, we can add more time to the timeline.
03:09Let's bring this over to 13 seconds, activate a keyframe, bring the Opacity up to 100%.
03:16Select the first keyframe, right-click, and Create Transition.
03:23So now, from 12 to 13 seconds, we have a cross-fade from photo2 to photo3.
03:30At this point, save your work. And to test the animation in a browser, let's choose File > Preview in Browser.
03:37And you can also use the keyboard shortcut Command+Return.
03:40And now in our browser we can see the first photograph will fade up at 1 second, the
03:44second one will fade up at the 6-second mark, and the third one will fade up at the 12-second mark.
03:48And after the third one the animation will stop.
03:51So next, we will look at adding a looping capability into our composition.
Collapse this transcript
Setting the animation to loop
00:00Now to create our looping effect, first we need to fade out photo 03.
00:03So down on the timeline, let's grab the playhead. Let's drag this out to the 18-second mark.
00:11Let's select panel_03_photo. Let's activate another keyframe for opacity.
00:18Let's move this over to the 19-second mark. Let's add another keyframe. Let's bring the Opacity down to 0.
00:25Select the first keyframe, right-click, choose Create Transition, and now we see that the
00:30photograph fades from 3 back to 2.
00:32However, we want to be able to fade back to the first photograph.
00:36So let's come back to the timeline labels, let's select panel_02_photo, and let's bring the
00:40playhead back to the 13-second mark.
00:44This is the point where the third photograph fades in over top of the second.
00:48So let's come down here and let's activate a keyframe for Opacity, and let's bring that down to 0.
00:54We're not creating a transition here, so what happens is once we get to the 13-second mark,
00:59panel_02_photo, which is completely covered up by panel_03, will have its Opacity set to 0.
01:05This way, at 18 seconds, when we fade out the third photo, this will cross-dissolve back
01:10into the first photo.
01:11So now with that in place, let's scrub the timeline back to the very beginning.
01:16Let's bring the playhead back to the 2-second mark, which is the point where the first photograph
01:20has faded in from our initial animation.
01:23Let's come over here and let's click on this little button here, which is the Insert Label
01:26button, and let's type in the name loop. Hit Return.
01:31So now at the 2-second mark we have a custom label named loop.
01:38Let's scrub the timeline back out to the 19-second mark.
01:41Let's come over here to the Actions panel. Let's insert a trigger.
01:45This will bring up the dialog box for the code for that particular action.
01:49On the right-hand side, under the Snippets, let's choose Play from.
01:54By default, this will put 1000 ms into the parentheses here.
01:58So what we want to do instead is tell the particular symbol to play. And inside of the
02:03parenthesis, two quotes for a string literal, we're going to type in loop, and then close.
02:10So now once the timeline gets to the 19-second mark, it's going to jump back to the looping
02:15area, which is the point where the base photograph is already animated in, and just continue to loop.
02:22So let's choose Command+S or Ctrl+S to Save our project.
02:25Let's come down and choose Preview in Browser.
02:29So in the browser at the 1-second mark photo_ 01 fades in; after 6 seconds photo_02 fades in;
02:34at 12 seconds photo_03 fades in; and then at 18 seconds photo_03 will fade back out, revealing photo_01.
02:42We set the timeline to go back to the looping point, and this gives us the effect of a constant,
02:46seamless transition between the three photographs.
02:50Now that our photographs seamlessly animate, next, we can start working on the captions.
Collapse this transcript
2. Creating and Animating Symbols
Creating the caption box background
00:00Now, we're going to work on creating the caption.
00:02First let's create the caption box.
00:03So let's come up here to the tools in the upper left-hand corner. Select the Rectangle tool.
00:09Come back to the stage. Let's click and drag.
00:12Once we have a rectangle defined, let's come over to the Properties panel.
00:16Under the Width, let's set this to 300 pixels, tab down to the Height. Let's set that to 250 pixels.
00:24Next, let's come down to Color. Let's come down here and let's select black.
00:28And then let's come over to the Alpha setting here, and let's set this to 70%, and hit Return.
00:36Now we have 30% transparent or 70% opaque black square, and we're going to use this
00:41as the background for all of the captions.
00:43So let's come in here, right-click. Let's convert this to a symbol. Let's call this
00:48caption_box. Click OK.
00:54Next, let's come up to the tool panel. Let's select the Type tool. Let's click and drag a type block.
01:02Let's type in "This is a 1-line caption."
01:06Close the text block.
01:09Let's move this into place. Let's widen this a little bit. Change the Height.
01:17Let's come over to the Properties panel. Let's change our type to 18 pixels.
01:23Let's come up here and set the color to white, and we have our text block here.
01:28Now, with the text block selected, hold the Shift key. Also, select the caption box, so
01:34now both of these are selected.
01:36Let's right-click, let's convert both of these into a symbol, and let's name this panel_01_caption, then click OK.
01:45So now if we look in the Symbols area of the Library panel, we'll see we now have a caption
01:49box symbol, and we have a panel_01 caption which contains the caption box.
01:54This way we can reuse the caption box in the other panels that we're going to make later on.
01:57And now with the caption box and text in place, next we'll create our Learn More button.
Collapse this transcript
Creating button artwork for captions
00:00Now we're going to create the artwork for the Learn More button, so let's come into
00:04panel_01_caption. Let's double-click this on the stage.
00:07This will bring us into Isolation mode.
00:09Here we can see that we're inside of panel_01_caption, which is inside of the main stage.
00:14So inside of this symbol, let's come up to the Rectangle tool. Let's click and drag.
00:20Once we've drawn a rectangle let's come over to the Properties panel. Under Width, we're
00:25going to set this to 110, and for the Height, we're going to set that to 25.
00:32Once that's in place, let's come up to Color.
00:34In here we're going to add a custom color. It's going to be #0366a9.
00:42Let's set the Alpha up to 100. Let's hit Return.
00:47Let's come up here and let's activate the border. So under None, let's come down and
00:51choose solid. We'll leave this at 1 pixel.
00:55And for the Color we're going to pick a slightly lighter blue.
00:58So under custom color let's start with #299ae0, then hit Return.
01:03Now, if I click away, you can see this slightly lighter border around the darker-blue button,
01:10and this will act as the artwork for our call-to-action button.
01:13Next we'll add a text to label and then we'll convert that into a symbol.
Collapse this transcript
Converting a custom button into a symbol
00:00Next, we'll create a text label for the Learn more button.
00:04So we want to make sure we're still inside of panel_01_caption, inside of isolation mode.
00:09Let's come up to the tools. Let's grab the Text tool. Let's click and drag.
00:16Let's type in Learn more.
00:18With the text selected, let's come down and choose center.
00:23Let's change the type size from 18 to 14 pixels.
00:28Let's move this over top of the button.
00:29I am going to resize this, and I'll use my arrow keys to just move this into the center
00:36of the blue box. So now if click away, we can see our Learn more button.
00:40So what I'm going to do is come in here, select the text, hold the Shift key, and select
00:45the blue rectangle.
00:47With both of these selected, let's right-click and choose Convert to Symbol.
00:53Let's name this learn_more, then click OK.
00:58Now we have an instance of the learn_more symbol placed inside of the panel_01_caption symbol.
01:04Next, let's grab the symbol. Let's align it to the left of the type.
01:07I am going to hold the Shift key, hit the down arrow twice, which will nudge the button
01:12away from the type about 20 pixels.
01:15And we'll space the button away from the text about the same amount in each one of our captions.
01:19Now that we have the button positioned where we want it, there is one more thing we're going to do.
01:23With the Learn more symbol selected, let's come up to the Properties panel, and notice
01:26we have this custom class item here. Let's open this up and let's add a custom class
01:31called button_learn_more, then hit Return.
01:37What we're doing here is adding a custom class that Edge Animate will pass through the HTML,
01:42and we're going to lock on to this later to create our rollover states with jQuery.
01:47So now that we have all of the elements created for panel_01_caption, next, we'll position
01:50the caption on the main stage and then animate it.
Collapse this transcript
Animating the caption symbols
00:00Now to position and animate panel_01_ caption, let's come back to the main stage.
00:03Now if you are still in isolation mode, you can come up here to the document breadcrumbs,
00:07come up and click on stage. That will bring us to the main stage.
00:12On the main stage you can select this, and all of these nested items are now inside of
00:15that one symbol called panel_01_caption.
00:19Let's move this down.
00:21Let's set the X position to 20, so come up here to the Properties panel. On the X, let's
00:27set that to 20 and for the Y, we are going to set this to 310.
00:35Open my stage up a little bit here. I like to put this just a couple of pixels outside.
00:40And remember, our main Stage has the overflow hidden, so anything we paste outside of this
00:44stage area will get clipped inside of the browser.
00:47Next, let's come down to the timeline.
00:49Let's get the playhead at the 2-second mark, make sure panel_01_caption is selected. Let's
00:56come up to the Properties panel. Let's activate the Y property. That's going to give us a
01:01top property here on the timeline. So with the first keyframe in place, let's scrub out
01:06to the playhead. Let's bring this over to 2.5, which is one half of a second.
01:12Let's activate the top property again. Let's select this. I like to hold the Shift key and use my up arrow.
01:18I am going to bring this up until the bottom of the button is at the bottom of the stage.
01:25Hold the Shift key, hit two more so that I get the same spacing underneath of the button
01:30as the button is spaced from the text.
01:34Let's grab the first keyframe on the timeline. Let's right-click and choose Create Transition.
01:39And with the transition selected, let's come up to the Easing button. Let's open this up.
01:44Let's choose Ease Out and let's choose Quad, and then press Return.
01:50This will give this a nice smooth transition as the caption animates up.
01:55Now, the caption is going to stay up the whole time when the photograph is up, so let's bring
01:59out the playhead up to the 6-second mark. Let's come over here. Let's add a keyframe for top.
02:07Let's move this to 6.5, add another keyframe, select panel_01_caption on the stage, hold
02:15the Shift key, use your down arrow, and let's just move this back down to the 310 mark.
02:21Select the first keyframe, right-click, choose Create Transition.
02:27With the transition selected, let's come over to the Easing. Let's choose Ease In > Quad and then press Return.
02:35So now we have the caption that we will animate in during the first photograph, and then once
02:39the photograph begins to change to photo_2, the caption will move away.
02:44To test this, let's choose File > Preview in Browser. The photo fades in, the caption slides
02:52up, and just as the second photo begins to fade in, the caption for photo1 will then animate down.
03:00Now that we have the first caption animating, next, we will work on duplicating and animating
03:03captions 2 and 3.
Collapse this transcript
Duplicating symbols for the second caption
00:00Now that we have the full caption symbol created for panel1, let's come over to the Library
00:05panel. Let's select panel_01_caption, let's right-click, and let's choose Duplicate.
00:11This will duplicate the panel_01_caption, but it will keep the instances of caption
00:15box and Learn more. So, those symbols won't get duplicated, but they will have instances
00:19placed into the new symbol we just duplicated.
00:23Next, let's double click this in the Library panel. Let's rename this to panel_02_caption.
00:32Let's hit Return, and now let's edit this.
00:35Let's double-click this from the Library panel.
00:37This will bring us into isolation mode, but instead of seeing everything in place on the
00:41background, which is called editing in place, we are seeing just the artwork and symbols
00:45for panel_02_caption.
00:47So first let's come up to the text. Let's select this. Let's double-click it to change
00:52the text. So let's change this to say, "This is a 2 line caption for this panel."
00:59Close the text block. Let's grab the Learn more button, hold the Shift key. You can hit
01:05the down arrow twice to position this approximately 20 pixels away from the text, the same amount
01:09of space we had in panel_01_caption. And then from the document breadcrumbs, let's go back to the main stage.
01:17Now, back on the main stage, we only have an instance of panel_01_caption.
01:20Next, we'll add another instance of panel_02_caption and create the animation for that as well.
Collapse this transcript
Animating caption two
00:00Now to place panel_02_caption on the stage, let's come over to the Library panel. Let's
00:04grab panel_02_caption.
00:08Let's just drag and drop this right on the stage.
00:10Now, with this placed on the stage, let's grab this symbol. Let's just drag it and align
00:14it right on top of the panel_01_caption.
00:17Now in the timeline, we have these little arrows here which show us all of the animated transition pieces.
00:23Let's come in here and close up all the ones for panel1 and all the photos.
00:28This way we can see more layers in the Timeline panel.
00:30So here we are, on panel_02_caption.
00:34I'll scrub the playhead. Let's bring this up to 7 seconds, which is the point where
00:38photo2 is fully faded in.
00:41Under panel_02_caption, let's select this. Let's come over to the Properties panel. Let's
00:46activate the Y property.
00:48Again, make sure your Auto Transition and Auto Keyframe are turned off.
00:53Let's move the playhead out to 7 1/2 seconds, activate the keyframe again. Let's select
01:00the caption on the stage. Let's arrow up until the Learn more is right at the bottom. I'll
01:07hold the Shift key, hit two more arrows to put it about 20 pixels up.
01:11An Edge also has rulers, so once you've measured this, you can come down and drag a guide,
01:17put this right here. That will help us position the third caption.
01:20Let's come down to the Timeline panel. Let's grab the first keyframe, right-click, choose Create Transition.
01:27With this selected, let's come up to Easing. Let's choose Ease Out, keep Quadratic, hit Return.
01:35Let's scroll the timeline over to the right. Let's drag the playhead out to the 12-second mark.
01:41This is right where the third photograph will begin to transition in. Let's add another
01:46keyframe for panel_02_caption.
01:51Bring this into 12 1/2, another keyframe. Let's grab this, use my arrow keys, and just arrow this down.
02:02Select the first keyframe, right-click, choose Create Transition. Select this, add Easing,
02:08Ease In, Quadratic, hit Return.
02:13Now, panel_02_caption will slide up as photo2 fades in.
02:17We'll hold its position all the way until photo3 begins to fade in, and then we'll move
02:23panel_02_caption back down.
02:25So now, with the first two captions in place, next, we'll work on creating the third one.
Collapse this transcript
Duplicating symbols for the third caption
00:00Now, to create our third panel caption, let's come over to the Library panel.
00:04Let's select panel_02_caption, right-click. Let's duplicate that symbol, double-click to rename.
00:13Name this panel_03_caption, hit Return.
00:15Now, on the main stage, let's grab panel_03_caption.
00:19Let's drag it from the Library panel onto the stage.
00:23Let's move this down into place, position it right over top of the first two.
00:29Now in the Library panel, let's come over and double-click panel_03_caption.
00:34This will bring us into isolation mode for just panel_03_caption.
00:39Let's select the text block, double-click it.
00:42Let's change the sentence and let's type, "This is a 3 line caption for the third panel
00:47or marquee project on lynda.com."
00:48Once you are done, close the text editing box, position the button right under the text,
00:57hold the Shift key, hit the down arrow twice, and then up in the breadcrumbs, come down to the stage.
01:05So now that we have our panel_03_caption created, next, we'll position it on the stage and animate that as well.
01:10
Collapse this transcript
Animating caption three
00:00Now that we have in our third caption positioned on the stage, let's come down to the timeline.
00:05Make sure the playhead is positioned at the 13-second mark.
00:08Make sure we have panel_03_caption selected.
00:11Let's active a keyframe for the Y property. Let's move this out to 131/2 seconds, activate
00:18another keyframe, and come up to the stage. Let's select panel_03_caption. Holding my Shift
00:26key, hitting the up arrow, I am going to move this up until the bottom of the button lines
00:30up with the bottom of the guide we created.
00:32Down in the timeline, select the first keyframe, right-click, Create Transition. Easing, let's
00:42choose Ease Out, Quadratic, hit Return.
00:47Now let's grab the playhead. Let's bring this out to the 18-second mark, add another keyframe
00:53for the Y property, move this out to 18 1/2 seconds, another keyframe, select this on
01:01the stage, Shift+Down Arrow, let's move this down.
01:07Select first keyframe, right-click, Create Transition. Easing, choose Ease In, Quadratic, hit Return.
01:16So at this point we have a looping animation with three photographs that cross-fade and
01:20a caption that comes up during each one of the individual photographs.
01:23To test this, let's come up to the File menu, let's choose Preview in Browser.
01:27So we have our beginning animation, which brings in the first photograph. Then after a few
01:31seconds we transition photograph 1 into photograph 2, caption1 goes away, caption2 comes up.
01:37At 12 seconds we have photograph 3 fade in.
01:39We have the caption for 2 fade away and then the caption for 3 animated.
01:43At the end of the animation at 18 seconds, we animate the caption block 3 down, jump
01:48the timeline to the looping point, right at the point where our caption1 animates in for
01:52the first photograph.
01:53Now that we have all of the elements animating properly, next, we'll add in the ability to
01:58stop the animation if the user moves their mouse inside of the composition. That way
02:02things aren't animating when the user is trying to interact with our marquee.
Collapse this transcript
3. Setting Custom Variables and Functions
Setting a custom variable
00:00Next, we're going to work on creating a script so that we can detect whether the mouse is
00:04inside of the composition, and if it is, we're going to actually stop the animation so the
00:08user can interact with our marquee.
00:10So the first thing we're going to do is create a text field on the stage to test our interactive state.
00:16So on the main stage, let's come up and grab the Text tool. Let's click and drag. And let's
00:24just create a test field here so we can detect the state of a variable that we're going to
00:28be setting in a few minutes.
00:30So let's type autoplay into this text field.
00:32With the text field selected, let's come up to the Properties panel. Let's name this instance test, hit Return.
00:41Let's make sure our type is 24 pixels and is white.
00:44Now down in the Timeline panel, let's scroll this to the left. Let's bring the timeline
00:50all the way down to the 0 marker. Llet's choose Insert Action.
00:55So in our code window here what I first want to do is set a variable. So we're come over
00:59here to the right-hand side, we're going to choose Set Symbol Variable, and Edge Animate
01:05will create, based on its API, a way to set a variable inside of a particular symbol.
01:10So here we're on the Main stage, so setVariable. The variable name we want is going to be called
01:16marqueeAutoplay, so inside of this string literal, we'll name this marqueeAutoplay, and
01:27the value for this is going to be on.
01:29We're going to set that to be on by default.
01:32In order to see what this value is, let's hit a Return, and we're going to set our test
01:38text block to get the property of this variable.
01:42So to do that, let's come over to the Snippets. Let's choose Set Element Text, so we get symbol.
01:49and then our jQuery $ sign.
01:52Inside up here we're going to type test. That's the name of the text block instance. And then
01:59html variable, we're going to set this to be a value. Inside of the parentheses we're
02:05going to type sym.getVariable, beginning and ending parenthesi. Inside, let's come up here
02:20and double-click the name marqueeAutoplay. Let's paste that down here inside of the string literal.
02:28So now what's going to happen is when we run this we're going to set a variable called
02:32marqueeAutoplay with a value of on, and then we're going to take the value of marqueeAutoplay
02:37and set that as the text for the test text block.
02:42Let's close this. Now to save this we have to Preview in Browser, so I'm going to hit
02:47Command+Return. And what we'll when the animation starts to play, we see this text block up
02:51here showing us the word on, which again is the value of the marqueeAutoplay.
02:56So now that we've properly defined and set the value of a variable on the main stage,
03:00next we'll this variable based on whether or not the user rolls their mouse inside or
03:04outside of our composition.
Collapse this transcript
Detecting a mouse rollover on the main stage
00:00Now we're going to write some custom jQuery to detect whether or not the mouse is inside
00:04or outside of our main composition or the main stage.
00:07So back in the timeline, let's double-click on the action we added earlier at the 0 marker.
00:13I'm going to make my text window a little taller here.
00:18I'm also going to come in here and get rid of all of the green text, the comments.
00:24Edge Animate will add these in by default to sort of help you write some of your scripts.
00:28So now what we're going to do is we're going to start with $(). I want to test the stage.
00:36Edge Animate will name the stage with an ID of stage.
00:39So inside of the parentheses, two quotes for a string literal, a pound sign, type in stage, outside
00:47of the parentheses .mouseenter, beginning and ending parentheses, outside of the parentheses
00:58.mouseleave, another set of parenthesis, then a semicolon.
01:07Inside of the parenthesis for mouseenter, we're going to type function, another set
01:12of parentheses, then beginning and ending bracket.
01:17Let's copy that. Let's put that inside of the mouseleave parentheses.
01:22So basically, what we're doing here is searching for an element with an ID of stage, setting
01:26a mouse enter with a custom function and a mouse leave with a custom function.
01:32Let's come in here and let's split these open on the brackets.
01:38Let's bring our cursor inside of the mouseenter function.
01:42Let's tab that in. And the first thing we want to do is set the system variable marqueeAutoplay to off.
01:48So let's come up here to line one. Let's copy this. Let's paste that inside of here, change
01:56the on to an off. Let's go inside of mouseleave and let's paste this in again, leaving the
02:03value for marqueeAutoplay to on.
02:06Next, let's come up here and select text that sets the text Property. Let's copy that.
02:14Inside of mouseenter functionm, let's hit a Return. Let's paste this in here, and then
02:20let's come down inside of mouseleave. Let's paste the same thing in again.
02:26So when we do a mouseenter we're going to set the test so we can see what the value
02:31of marqueeAutoplay is, and then on mouseleave we're going to change the value and the set
02:35the test text block again.
02:38Now to test this, let's close our code window. Let's choose Preview in Browser, and notice
02:46when I roll my cursor inside of the stage, the text changes from on to off. And as long
02:51as I'm in here, it will say off and when I roll outside, it will change back to on.
02:58So now moving in and out of the stage mouseenter and mouseleave will change the value of that
03:02variable and update the text field.
03:05So now that we're properly detecting for whether or not the user's mouse of our marquee, next,
03:10we can write a custom function to stop the timeline so that we don't animate the marquee
03:15when the user's mouse is inside of the stage.
Collapse this transcript
Creating a custom JavaScript function
00:00Now, in order to access a custom function from other places on the timeline, we need to take
00:04the function and define it as a variable.
00:06So let's go back to the script at the 00 marker.
00:09We created a function called checkAutoPlay.
00:12After that custom function, let's hit a Return.
00:15Next, we're going to type sym.setVariable, very similar to what we did up here on line 1.
00:24After setVariable beginning and ending parentheses and a semicolon. Inside, two quotes for string literal.
00:33We're going to call this myFunction, then a comma.
00:38Let's come up here and copy the name checkAutoPlay, copy that to the clipboard.
00:45Let's paste that inside of the parentheses.
00:47So what we're doing here is we're taking a new variable named myFunction and setting
00:51it equal to the function named checkAutoPlay, so we can later on call the myFunction variable,
00:57which will in turn play the custom function that we created inside of the script.
01:02Now, with that in place, let's close the script.
01:04Let's come back to the timeline. Let's move the playhead out to 5 1/2 seconds. Let's come
01:09over to the Actions. Let's insert a trigger, and inside of here we want to create a new
01:13variable and we're going to set it equal to the myFunction variable we just created earlier.
01:21So let's create a variable called myLocalVar. We're going to set that equal to sym.getVariable
01:30beginning and ending parentheses, semicolon. Iinside of the parentheses, two quotes for string
01:36literal, myFunction. Let's hit a Return.
01:43Let's come up here. Let's copy the myLocalVariable, because now the value of that is equal to a function.
01:48Next line, myLocalVar, beginning and ending parentheses, then a semicolon.
01:54So what's happening here is the timeline trigger at 5 1/2 seconds is declaring a new variable,
01:58setting it equal to a function variable we created at the 00 marker, and then we're going
02:02to run that, because it is a function and we can run that like any other function.
02:06Next, let's copy these two lines. Let's close the timeline trigger.
02:12Let's come back to the timeline. Let's move out to the 11-second mark, maybe about 11 1/2.
02:21Let's add another timeline trigger, Let's paste that. Let's close it.
02:29Let's come out to the 17 1/2. Let's insert another timeline trigger. Let's paste the same script.
02:36So now at 3 points along the timeline, we're going to check that custom function, which
02:40in turn is going to check to variable marquee autoplay, whose value is going to be set based
02:45on whether not we're rolled in or out of the marquee with our mouse.
02:48Now to test this, let's hit Command+Return, look at this in the browser.
02:51I have my cursor inside, the Marquee auto variable is set to off, and notice that the
02:57animation doesn't go past the very first frame.
03:00I'll roll my mouse outside. The variable changes from off to on, and then in the custom function
03:05we will in turn trigger the timeline to play, and this will continue to play until we move
03:08our mouse outside the marquee stage, which will in turn turn off the autoplay and stop the main stage.
03:15So now that the marquee's animation responds to the user's mouse,
03:18next, we can work on creating navigation to go between the panels.
Collapse this transcript
Running a custom JavaScript function
00:00Now that we have our rollover detection in, let's add a custom function.
00:03So back on the timeline, let's go to the action that we put at the 0 marker. Let's double-click this.
00:10After the mouseover function after our mouseover script, let's hit a few Returns. Let's add a function.
00:17So we'll type function, space. The name of our function is going to be checkAutoplay, beginning
00:25and ending parentheses, beginning and ending bracket.
00:28Let's split that open on the brackets.
00:32Inside of the function, let's start with the conditional statement. We're going to type
00:36if, beginning and ending parentheses, beginning and ending bracket, split that open. Inside
00:43of the parentheses for if, the condition is going to be sym.getVariable, then beginning
00:53and ending parentheses. Inside of the parentheses, two quotes for a string literal, marquee_autoplay,
01:04double equals. We're going to check the absolute equality. Two quotes and then on.
01:09So what we're saying is if the getVariable equals on, we're going to execute what's inside
01:15of this if statement.
01:17So I'm going to type sym.play, beginning and ending parentheses, then a semicolon.
01:23Now we are going to add an else, so after the beginning and ending bracket, let's add else.
01:29Another beginning and ending bracket. Let's split that open.
01:34Inside here we're going to type sym.stop, beginning and ending parentheses, then a semicolon.
01:41So what this function is going to do, when we call checkAutoPlay,
01:44we're going to check to see if the autoplay variable equals on.
01:47If it does, we are going to continue to play the main stage; if not, we're going to stop the main stage.
01:52Now we also need to play the main stage when the user moves their mouse outside of the marquee as well.
01:56So let's come up here and copy the sym.play, let's copy that to the clipboard.
02:02Let's come up to the mouseleave function, and let's paste up here as well.
02:07So if the autoplay checks, and if the marquee autoplay equals on, we're going to play; otherwise
02:12we're going to stop. And when the mouse leaves, we're going to initiate play as well.
02:17Now that we have our custom function defined, next, we're going to create some timeline triggers
02:20to run this function and check the marqueeAutoPlay variable.
Collapse this transcript
4. Creating and Linking the Navigation
Creating navigation button artwork
00:00Now we're going to create the navigation for our marquee so that we can have the user jump
00:03between individual panels.
00:05So to start this, I'm going to come down here to the stage and I'm going to scroll over to the right.
00:09I'm going to move the responsive ruler. I'm going to move this out to greater than 980
00:15pixels. And you'll notice that this ruler will lock at the 500 mark and the 980-pixel
00:21mark, which matches the stage settings of minimum width and maximum width.
00:25I'm also going to come down here and change the zoom to 300%.
00:30I'm going to scroll inside of the stage so I can see the lower right-hand corner of the stage.
00:36Now let's come up to the tools. Let's select this Ellipse tool. Let's click and drag. Hold
00:42Shift to conform this to a circle.
00:44We want to come in here to the width and height.
00:47We're going to set this to 14 pixels x 14 pixels.
00:52Under Color, let's come in here and make sure this is set the white.
00:57Now with this selected, let's come over to the X and Y properties.
00:59For the X-property, let's set this to 850 pixels and 260 on the Y. And our users are
01:09going to be able to interact with these, so let's come down in the Properties panel to cursor.
01:14Let's click on Auto and let's change it to a pointer.
01:16This will indicate to our users through the use of a pointer that they can click on these
01:19individual graphics.
01:21And then lastly, with the object selected, let's right-click, come down and choose Convert to Symbol.
01:29Let's name this nav button, then,click OK.
01:31So now we have an instance of nav button on the stage.
01:35Let's come up to the Properties panel. Let's change this instance name to nav_button_01.
01:41For each individual button we have to have a unique name for each navigation item.
01:45Now let's come down to the stage, hold the Option or Alt key in windows, click and drag
01:51to drag out a second copy or a second instance.
01:55Let's come up to the Properties panel. Let's name the instance nav_button_02.
02:01Let's set the X-property to 890, then hold the Option or Alt key, drag out a third copy,
02:11name the instance nav_button_03, and set the X property 930 pixels.
02:20This will space each one of the buttons 40 pixels apart, and then click away.
02:25So now in the timeline you'll see we have nav_button_1, nav_button_2, and nav_button_3,
02:30and we can also see these on the stage.
02:32At this point, let's choose Command+S or Ctrl+S to save, and then preview in browser.
02:37Now, in the lower right-hand corner, we'll see the three buttons and as we roll over these,
02:40we'll get the hand cursor indicating to the user that these are clickable.
02:44Now that we have the buttons created, next, we'll hook these up to actually jump the timeline
02:47to specific points.
Collapse this transcript
Linking the navigation to panels
00:00Now, before we add links to these buttons, we're going to need to put frame labels on the timelines
00:04so we can link these to specific points.
00:06So down in the timeline, let's scroll this over to the left. Let's bring our playhead
00:11over to the 5-second mark.
00:13This is a few seconds right before the trigger, which will actually detect the marquee autoplay.
00:19So inside of here, let's come over to the frame label. We'll call this panel_01, hit Return.
00:27Let's scroll out, bring the playhead out to the 11-second mark, add a frame label, name
00:35this panel_02, and then scroll out. Bring the playhead out to the 17-second mark.
00:45Add another frame label, name it panel_03.
00:50So now we have three destinations that we can link our buttons to.
00:53Let's come up to the stage. Let's select the first nav button instance named nav_ button_01.
00:59Let's right-click. Let's come down to Open Actions for nav_button. Inside of here we're
01:05going to come down and choose the click event.
01:08So on click, we're going to come down and choose Play from. Let's come in here and let's delete
01:14the 1000 ml, two quotes for a string literal, and let's type in the name of the frame label panel_01.
01:23Now with that in place, let's come in here. Let's copy this. Let's close our script. Let's
01:29select the second nav button instance named nav_button_02. Let's right-click, Open Actions
01:36for nav_button_02, select the click event. Let's paste our script. Let's change the 01
01:43with an 02. Close our code window, select the third nav button instance named nav_button_03,
01:53right-click, choose Actions, click event, paste in our script, and change this to panel_03, then close.
02:05Let's choose File > Save and then Preview in Browser.
02:09Now inside of our marquee, we can come in here, roll over the different buttons. Let's click
02:13on panel_02. This will jump the timeline over to panel_02. Click on the third one, this
02:18will jump us to panel_03, back to 2, and then back to 1 .
02:22Then I'll leave this on panel two, I'll roll my mouse outside of the stage. The autoplay
02:28will be turned on, and then the marquee will continue to animate until the user rolls back into the marquee.
02:34Now that we've got our navigation hooked up, next, we'll add an indicator so that the user
02:37knows which one of the panels they are currently looking at.
Collapse this transcript
Creating the navigation indicator
00:00Now we're going to create the artwork for the indicator.
00:02So let's come up to the tools. Let's grab the Ellipsis tool. Let's click and drag, hold
00:08the Shift key to conform this to a circle.
00:10In the Properties panel, let's come in to the width and height. We'll change this to
00:1528 on both. Under Color, let's come down and choose for the fill.
00:23You can pick any color, but we're going to come down and set the Alpha to 0. Let's come
00:27under stroke. Let's pick white, chose solid for the type, and then 2 pixels for the size.
00:37Selector the indicator on the stage. Let's come up to the Properties panel. Let's change
00:44the instance name to indicator. Let's click and drag, and let's position it right over
00:49top of the very first nav button. It should snap into place aligning in the center.
00:53Now we do need to make sure the indicator is behind those individual navigation buttons;
00:57otherwise the indicator will get in the way of the user clicking on those buttons.
01:01So with the indicator selected, let's come up to the Modify menu, come down to Arrange,
01:06and choose Send Backward.
01:08You'll see in the timeline the indicator is now behind button 3. You can also hit Command+Left
01:13bracket or Ctrl+Left bracket.
01:14I'm going to hit two more times and we'll see the indicator is now behind all three of these button.
01:19I'm also going to come in here and collapse these, since I don't need to see the properties for those buttons.
01:24And now that we have the indicator artwork created, next, we'll animate the indicator
01:28state to reflect the current panel of the marquee.
Collapse this transcript
Animating the navigation indicator
00:00Now to animate the indicator, let's come up to the stage. Let's select the indicator artwork.
00:05This will also select this in the timeline.
00:08Now, it is behind the very first one, which is the first panel, and we need this to stay
00:12in place until we transition to the second panel, which happens at the 6-second mark.
00:16So let me scroll down in the Timeline window here. So at the 6 second mark, with the indicator
00:23selected, let's activate the left or X property.
00:26So we added a keyframe here. Let's move this out to the 7-second mar. This is the same
00:33duration that the second photograph takes to fade in.
00:36So at the 7-second mark let's activate another keyframe.
00:39Let's come up to the stage. Let's move this over so that it's behind the second navigation item.
00:46Let's come down to the timeline, select the first keyframe, right-click, and choose Create Transition.
00:52With this selected, let's come up to Easing, choose Ease Out > Quadratic, hit Return.
00:57So now if we scrub the timeline, we can see when the photography changes from panel 1
01:03to panel 2, the indicator will also move to indicate that we're on the second panel.
01:10Scroll the timeline. Let's find a point where we animate from two to three, which happens at 12 seconds.
01:17So at 12 seconds, on indicator, let's activate another keyframe. Bring the playhead out to
01:23the 13-second mark, activate another keyframe, come up to the stage, drag this over until
01:29it snaps behind the third navigation item.
01:33Select the first keyframe, right-click, choose Create Transition, make sure Ease Out and
01:39Quadratic are still selected.
01:41Next, let's scroll the timeline out. When we get out to the 18-second mark, let's activate
01:50another keyframe, then move out to 19 seconds, activate another keyframe, grab the indicator
01:58and let's drag this all the way back to be behind the first navigation button.
02:03Select the first keyframe, right-click, Create Transition. Then again, make sure Ease Out
02:09and Quadratic are on.
02:11So now with that completed, Hit Command+S or Ctrl+S to Save and then Command+Return
02:15or Ctrl+Return to preview in browser.
02:17And now in the browser we can see the indicator is behind the very first panel, and then when
02:21we go to panel 2, the indicator will animate to be behind the second button and then behind
02:26the third button, and then when we go from 3 to 1, the indicator will animate from the
02:29third button to be behind the first button.
02:32This also works if I come up and interact with this as well.
02:34Since we're jumping on the timeline and the indicator is animated across the timeline,
02:38the indicator will also move along as I select different navigation items.
02:42And now that we have our animation and navigation in place, next we'll add some custom interactions using jQuery.
02:47
Collapse this transcript
5. Creating Custom Interactions with jQuery
Adding a custom CSS class to navigation artwork
00:00Now we're going to add a rollover to the navigation buttons. But instead of adding a custom rollover
00:04event to each button, what we're going to do is add a custom class and then write a
00:08jQuery script later.
00:10So the first thing we need to do is come into our navigation. Let's double-click one of
00:14the nav buttons. So with this selected--we can see we have the ellipse selected here--
00:19let's come over here in the Properties panel, let's click on the custom class, and let's
00:22add a custom class into this.
00:25So we'll type button_circle and then hit Return.
00:29Now since we are working inside of the nav button symbol, which we can see up here in
00:34the breadcrumbs, that custom class that we just added is going to be added to all instances
00:39of nav button symbol.
00:40So let's come back to the main stage.
00:43Now, to test this and make sure, let's come into the second instance.
00:48Let's select this, come up to custom class. We can see it's highlighted. And if I open
00:51this up, we can see button_ circles has been applied here as well.
00:56Back to the main stage. And now that we have our custom class assigned into each one of
00:59our nav button instances, we'll write a custom jQuery script to activate the rollovers.
Collapse this transcript
Create a navigation rollover effect with jQuery
00:00Now, instead of adding a custom action to each one of our navigation buttons, what we're
00:04going to do instead is write a jQuery statement that's going to target the custom class inside
00:08of each nav button and write our own rollover script.
00:12So down in the Timeline panel, let's scrub the playhead. Let's drag this all the way
00:16back to the 0 marker, and then let's open the action that we have at the 0 marker.
00:21So after our custom function and our variable defined in the function, let's add a few returns.
00:25So what we're going to down here is we're going to start with a jQuery statement: $(".button_circle").
00:37This is the same name as the custom class we put inside of every one of the nav button instances.
00:45So after button_circle we're going to type .hover, another set of parentheses, semicolon.
00:53Inside of the parentheses for hover, we're going to put two functions: the first one
00:58is on mouse over or on hover; the second one is on mouse leave.
01:04So I'll type function(), beginning and ending bracket, then a comma.
01:11Let's come in here and copy that, and let's paste it a second time.
01:16Next let's split both of these open on the brackets.
01:21So again, inside of the first one here is on mouse over, we're going to type $(this), outside
01:30of the parentheses, we're going to type .css, beginning and ending parentheses, semicolon.
01:38Inside of the parentheses, two quotes for a string literal.
01:41We're going to type background-color.
01:43Outside of the quotes for a string literal but still inside of the parentheses for css, comma, two
01:51more quotes for another string literal.
01:54This is going to be the color, #299ae0.
02:01Let's copy this entire line.
02:04Now inside of the mouseout, which is the second function inside of the hover statement,
02:08we're going to set this back to white, so #fff.
02:12So again, this jQuery statement is going to find every instance of button_circle inside
02:16of any symbol or anywhere on our composition and then when we hover over it, we're going
02:20to change the background color to this blue, and then when we were no longer hovering over
02:24the object, it's going to go back to being white.
02:26So let's hit Command+S or Ctrl+S to save our project, and let's go to File > Preview in Browser.
02:35Now when I roll in mouse into the composition, when I roll over each one of these buttons,
02:39they will turn blue, and when I roll away, they will go back to being white.
02:43So again, this is a much more efficient technique than adding a custom action on each one of
02:49the individual navigation items.
02:52So now with that in place, next, we'll work on hover states and hyperlinks for the learn
02:55more buttons inside of our captions.
Collapse this transcript
6. Linking the Caption Buttons
Linking the caption buttons to web pages
00:00Now we're going to add hyperlinks to our learn more buttons.
00:03So what we're going to do here on the stage, I'm going to zoom out to 100%.
00:07You can type in 100 here and hit Return or you can hit Command+1 or Ctrl+1.
00:11I'm also going to come down here and center the stage. And I'll scroll out here a little
00:16bit, since my screen is a little bit smaller.
00:19And down in the Timeline panel, I'm going to jog the playhead out to the five-second mark
00:24so I can see the caption on the stage.
00:26Next, let's double-click. This will brings us inside of panel_01_caption, and we have
00:31the Learn more symbol instance selected.
00:34Now, with this selected, the first thing we want to do is indicate to our user that they can click on this.
00:38So in the Properties panel, let's come down to the Cursor Setting. Let's turn on the Pointer and hit Return.
00:44Next, we're going to right-click, come down and choose Open Actions for "learn_more."
00:50Inside of here, what we're going to do is come down to click, then on the right-hand side,
00:55under the Snippets, let's come down and choose Open URL.
00:59So inside of here, we're going to change adobe.com to lynda.com, and then inside of self, we're
01:07going to put blank.
01:10That way when we click this link, it will open a new window with the lynda.com website in that new tab.
01:17Next, let's copy this line. Let's close this.
01:24Let's come back out to the main stage.
01:26Let's scrub the Timeline. Let's come out to the 11-second mark. Let's double-click inside
01:32of panel_02_caption. Let's select Learn more buttons inside of here, come over to cursor
01:37in the Properties panel, select pointer. Then we'll right-click, choose Open Actions for
01:43"learn_more", choose a click event. Let's paste in our code.
01:53This one we'll just link to Adobe. Let's close that.
01:59Back to the main stage. Let's scroll the timeline out, then scrub it out to the 17-second mark,
02:07double-click panel_03_ caption, select Learn more.
02:13Assign the pointer cursor, right-click, Open Actions, click event. Let's paste in our script.
02:26We'll type in codifydesign.
02:32So now we have our setting cursor setting and a hyperlink activated for each one of
02:35the buttons inside of our three captions.
02:37Command+S or Ctrl+S to save, and then let's preview in browser.
02:47Now, inside of the browser, let's come down and click on the button for Learn more inside of caption 01.
02:52That will open lynda.com in the new tab.
02:55Let's close this. Let's come over, let's activate panel two.
03:00We'll click this one. This will bring up adobe.com. We'll close that.
03:05Come over to the third panel. We'll click Learn more, and this will bring up my company,
03:11Codify Design Studio.
03:13So now we have activated not only the pointer tools for the buttons but hyperlinks for each
03:17one of these individual buttons.
03:19Now that we have those in place, next we'll activate a hover state using the same technique
03:22we used for the navigation.
Collapse this transcript
Adding a custom CSS class to the caption button artwork
00:00Now to add a custom rollover state to our Learn more buttons, let's go into one of our captions.
00:04I'm going to double-click here and go into panel_03_caption.
00:09If I select the Learn more symbol here, we can see that this is an instance of the learn_more
00:13symbol, and we already created a custom class called btn_learn_more.
00:17Again, we needed to do this because we have a box and a text field inside of this symbol.
00:22So we're going to lock onto the parent container of these items.
00:27So now let's come back to the stage. Let's double-click the Learn more.
00:31Now we're inside of the learn_more symbol, which is inside of the panel_03_caption.
00:35Inside of here we have our two objects. Inside the Learn more symbol, let's select the blue rectangle.
00:40With that selected, we're going to add a custom class onto this item as well.
00:44So up here in the Properties panel, let's click on a custom class. Let's add button_artwork, then hit Return.
00:52So now since we've added that custom class inside of the Learn more symbol here, that
00:57will be applied to every instance of the Learn more button, which is inside of every one of
01:01our caption symbols.
01:03And now with that in place, we can write a custom jQuery statement to activate rollovers
01:06for all of the Learn more buttons.
Collapse this transcript
Create a button rollover effect with jQuery
00:00Now to write our custom jQuery to activate the rollover states for the Learn more buttons,
00:04let's come back to the main stage.
00:06Down in the Timeline panel, let's scroll out to the left. Let's bring our playhead all
00:12way out to the 0, 0 marker.
00:14Let's double-click the action at the 0 marker.
00:18After the custom function that we wrote earlier for the navigation items, let's come in here
00:22and do something very similar.
00:24Let's start with a dollar sign, beginning and ending parentheses, two quotes inside
00:28for a string literal.
00:29We're going to search for .btn_learn_more.
00:37This is the custom class we put on the outermost symbol in each instance inside of the captions.
00:43After the parentheses .hover();. Inside we are going to a dd two functions, function (), beginning and ending bracket, then a comma.
01:01Let's copy the function and paste it again after the comma.
01:03Then we'll split these open on the brackets.
01:07So, on mouseover the first thing we're going to do, $(this).
01:17Outside of the this we are going to type .find, because we are going to look for a class that's
01:21inside of the actual button learn more class.
01:25Beginning and ending parentheses, semicolon.
01:28Inside of the parentheses for find, two quotes for a string literal.
01:32We are going to search for button_artwork.
01:36Outside of the parentheses, .css, beginning and ending parentheses then a semicolon.
01:45Inside of the parentheses for css, two quotes for a string literal.
01:50We are going to type background-color. Then outside of the quotes but still inside of
01:57the parenthesis, two more quotes for another string literal.
02:00I am going to open up my code window here. The value is going to be #2d90d2.
02:11Let's come in here and copy this entire statement.
02:17Inside of the rollout area, or the second function of hover, we are still going to find
02:21button_artwork again. We are going to set the CSS background-color back to the original color, which is #036689.
02:33Let's close our code window. Let's chose Command+S or Ctrl+S to save and then Preview in Browser.
02:42Now when I roll over the Learn more button, the main button trigger is being found, and
02:47then we're searching for the rectangle inside with the class of button_artwork.
02:51So, now we are getting a rollover effect when we roll our mouse over the nav button instance,
02:55and this work for all three captions.
02:57Let's jump over to panel 2 and then jump over to panel 3.
03:02So, now that the functionality of our project's complete, next we'll make the design responsive
03:06and we will get rid of our debugging code.
Collapse this transcript
7. The Final Details
Making your design responsive
00:00Now we are going to set up parts of our design to be responsive.
00:03When we started the project we created a width of 100% on our main stage, so this means as
00:08our stage collapses down and our Overflow is set to hidden, our photography will be cropped
00:13and we won't get a horizontal scrollbar in our composition.
00:16However, the problem we are going to have is when we close the browser down, the navigation's
00:20going to be hidden.
00:21So in Preview in Browser here, if I close the browser down, you'll see that the navigation
00:25actually gets hidden.
00:27When we get under 500 pixels, this is where we'll have horizontal scrolling. But again,
00:31our navigation can be interacted with until we open the browser up to a certain width.
00:36So we are going to set a responsive design property on the navigation so that it moves with the browser.
00:41So, let's close out of Preview in Browser.
00:44On the stage I am just going to scroll over to the right-hand side here, and when we set
00:48up our responsive properties, we have this little ruler here that we can move back and
00:52forth, and Edge Animate will give us a preview of what the design will look like.
00:56980 is our maximum width, all the way down to a minimum width of 500. But again, notice
01:01we don't see the navigation moving here either.
01:03So what we are going to do is come down to the Timeline panel. I want to group together
01:08the indicator, hold the Shift, and select nav_ button_01, nav_button_02, and nav_button_03.
01:13By holding Shift and selecting these here, I'm assured that I'm selecting all of those individual items.
01:18Let's come up to the Modify menu. Let's come down and choose Group Elements into a DIV.
01:24What this is going to do is basically take all of those individual navigation items and
01:28put a wrapping div around them, and we can also see this in the Elements panel.
01:33If your Elements panel is not open, you can open this up. And here we can see each one
01:38of our individual navigation buttons, and the indicator is now going to be grouped inside of this div.
01:46I'll close this up. Let's come over to the Properties panel.
01:49With this div selected, let's come down to Position and Size. Let's set a registration
01:54point to the lower right-hand inside, and if you are on Global, let's come over here and click Applied.
01:58What this is going to do is give us the properties in CSS for the right and bottom positioning
02:04of this particular object.
02:05Now the Bottom setting is set to 17 pixels, and the Right setting is set to 36 pixels.
02:10I'm going to come in and just change this to 40 pixels on the right.
02:15On the stage, you'll see this moves over a little bit, and what this positioning does
02:18is it make sure that the right-hand side is always 40 pixels from the right-hand side of the stage.
02:24Now, if I come up here and grab the Responsive Ruler, and click and drag this, notice as
02:28I drag the ruler, the navigation will always be 40 pixels from the right side of the browser.
02:36Now that this is working as I expect in the Responsive Ruler, let's hit Command+S or Ctrl+S to save.
02:42Let's preview this in a browser, make sure it works in the browser as well.
02:45So inside of the browser, let's come over here and resize this.
02:48As we close this down, the photograph in the background will clip from the right.
02:51I don't get any horizontal scrollbars until we get under 500 pixels, and the navigation
02:56will fall at the right-hand side of the browser within 40 pixels.
02:59So this gives me the ability to interact with my composition at any size between 980 and 500 pixels.
03:07So now that our composition is responsive, next we'll get rid of that debugging code.
Collapse this transcript
Removing the debugging code
00:00Now we are going to remove the debugging code.
00:03If you're showing this to your client, one thing you can do before the project is complete
00:06is you can move this text off the stage.
00:09Since we have the Overflow hidden, your client won't be able to see this during review, but
00:12you can still have it there in case you need it to debug anything else.
00:16But when you are done, you can come in here and just simply hit Delete and remove that from the stage.
00:21Next, let's come down to the Timeline panel.
00:22Let's come over to the action at the 0, 0 marker.
00:26Let's double-click this.
00:27Let's scroll up to the top of the script.
00:30Inside of the mouseenter and mouseout for the stage, we'll find the lines where we update
00:34the instance name test.
00:36I can do one of two things here. You can simply put two // at the beginning of those lines,
00:42inside of mouseenter and mouseleave. This will comment these out and will not be paid attention
00:46to by the browser. Or you can simply come in here and just delete these line altogether.
00:51So, I'll delete this two lines, hit Command+S or Ctrl+S, Preview in Browser, and now you'll
01:00get the user experience that we developed without seeing the debugging code in the upper-left corner here.
01:05And with that, that completes creating an interactive responsive animated homepage marquee
01:09for your website using Edge Animate. Next, we'll talk about where you might want to go from here.
01:13
Collapse this transcript
Conclusion
Where to go from here
00:00Now, if this is one of your first projects with Adobe Edge Animate, I have another course
00:04on lynda.com called Edge Animate Essential Training.
00:07This will walk you through, step by step, all of the major features of Adobe Edge Animate.
00:11There is even a section inside of this course where if you have experience with other animation
00:16tools, such as Flash, After Effects, Photoshop, and even Sencha Animator or Tumult Hype,
00:22I'll show you step by step how you can take those skills and work them into Adobe Edge
00:25Animate, showing you how to migrate your skills and workflow from one application to the other.
00:30I also have another course called Creating an Animated Star Field where we'll create
00:33randomized animations with Adobe Edge Animate.
00:35What this will do is show you how to create a responsive design that also will take an
00:39animation and randomize it across the stage so that the animation never gets old or repetitive
00:44and users can watch the animation for a longer period of time.
00:51And in addition to Adobe Edge Animate, I also have a whole series of courses that walk you
00:54step by step through creating your own interactive animated experiences using jQuery, HTML, and CSS.
01:00We'll do things like create interactive photo galleries, HTML5 video players, rotating carousels,
01:06dropdown menus, and tooltips.
01:08And again, each one of these will walk you through step by step.
01:10So, if you have very little experience with JavaScript, you can apply JavaScript and jQuery
01:15to your HTML and CSS work.
01:17And with that, that concludes Creating an Interactive Marquee for your Homepage with
01:21Edge Animate, and I really appreciate you watching my course.
01:23
Collapse this transcript


Suggested courses to watch next:

Muse Essential Training (5h 58m)
James Fritz

CSS: Transitions and Transforms (2h 25m)
Joseph Lowery


JavaScript Essential Training (5h 31m)
Simon Allardice


Are you sure you want to delete this bookmark?

cancel

Bookmark this Tutorial

Name

Description

{0} characters left

Tags

Separate tags with a space. Use quotes around multi-word tags. Suggested Tags:
loading
cancel

bookmark this course

{0} characters left Separate tags with a space. Use quotes around multi-word tags. Suggested Tags:
loading

Error:

go to playlists »

Create new playlist

name:
description:
save cancel

You must be a lynda.com member to watch this video.

Every course in the lynda.com library contains free videos that let you assess the quality of our tutorials before you subscribe—just click on the blue links to watch them. Become a member to access all 104,069 instructional videos.

get started learn more

If you are already an active lynda.com member, please log in to access the lynda.com library.

Get access to all lynda.com videos

You are currently signed into your admin account, which doesn't let you view lynda.com videos. For full access to the lynda.com library, log in through iplogin.lynda.com, or sign in through your organization's portal. You may also request a user account by calling 1 1 (888) 335-9632 or emailing us at cs@lynda.com.

Get access to all lynda.com videos

You are currently signed into your admin account, which doesn't let you view lynda.com videos. For full access to the lynda.com library, log in through iplogin.lynda.com, or sign in through your organization's portal. You may also request a user account by calling 1 1 (888) 335-9632 or emailing us at cs@lynda.com.

Access to lynda.com videos

Your organization has a limited access membership to the lynda.com library that allows access to only a specific, limited selection of courses.

You don't have access to this video.

You're logged in as an account administrator, but your membership is not active.

Contact a Training Solutions Advisor at 1 (888) 335-9632.

How to access this video.

If this course is one of your five classes, then your class currently isn't in session.

If you want to watch this video and it is not part of your class, upgrade your membership for unlimited access to the full library of 2,024 courses anytime, anywhere.

learn more upgrade

You can always watch the free content included in every course.

Questions? Call Customer Service at 1 1 (888) 335-9632 or email cs@lynda.com.

You don't have access to this video.

You're logged in as an account administrator, but your membership is no longer active. You can still access reports and account information.

To reactivate your account, contact a Training Solutions Advisor at 1 1 (888) 335-9632.

Need help accessing this video?

You can't access this video from your master administrator account.

Call Customer Service at 1 1 (888) 335-9632 or email cs@lynda.com for help accessing this video.

preview image of new course page

Try our new course pages

Explore our redesigned course pages, and tell us about your experience.

If you want to switch back to the old view, change your site preferences from the my account menu.

Try the new pages No, thanks

site feedback

Thanks for signing up.

We’ll send you a confirmation email shortly.


By signing up, you’ll receive about four emails per month, including

We’ll only use your email address to send you these mailings.

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

By signing up, you’ll receive about four emails per month, including

We’ll only use your email address to send you these mailings.

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked