In this video, learn how to create an onboarding experience by creating a button color change and then a breadcrumb trail. Explore how to do a color change using an effect and how to create a breadcrumb trail by working with the color property of a shape.
- [Instructor] In this chapter we're going to look at prototyping common design patterns. What's a design pattern you may ask? That's a good question. First off, there's no standard definition for a design pattern. But a commonly understood meaning for the term is design patterns are common solutions to common usability problems. A common design pattern for example would be ubiquitous hamburger menu. Another is how a button reacts to a touch, tap or click. Another common one is a bread crumb trail which allows users to navigate through a hierarchical app or webpage.
In this exercise we're going to look at the button click and the bread crumb trail. And to get yourself started, open the 01 onboard dot AEP file found in your chapter download. When it opens you'll see there are three comps in the project. There's the main screen which you're looking at, the bread crumbs and if I open it you'll see there are the bread crumbs. We're going to wire up these dots, and an onboard screen where the dots will move. Now this is, what we're going to do with this little comp here is we're just going to concentrate on having the dots move and we don't have to worry about screen swapping.
So let's go back to the main screen, and let's get started. The main screen comp which we're looking at here, is where the magic will happen. And the onboard screen and bread crumbs comps are where the bread crumb trail will be created, and we'll start with the main screen comps. So I'll just make sure it's open, I'm going to double click it and we're going to concentrate on the get started button here. There are any number of ways to indicate a button tap or mouse click, and here's one you may not have considered.
If you open the effects and presets panel over here, and if you don't have it open it's available right here in the windows menu, and scroll down to color correction and open up the color correction effects, and scroll up and we're looking for this one here, levels. And what we're going to do is we're going to use levels to change the color of the button. So to add the effect basically we're just going to drop it right on the button. You can see there's a indication that it's going to be dropped there, and if you don't want to do that you can just drop it right on the layer.
I'm going to drop it right on the button itself. And you can see that the effect controls open up and we have a histogram. Now if I pull this out just a bit more you can see that we have a white point, a mid point and a black point. And if I move the black point towards the white, things get darker. So that's what we're going to do to change the color of the button, we're going to use the black slider here. So the first step in the process is let's get over to frame 50 right there, and we're going to add a histogram key frame right there.
Okay so, now what we've done is we've said okay, the color's going to stay the same. And we're going to come over 10 more frames, frame 60, and we're going to take this black point slider and we're going to move it across, now watch the button, you see how it darkens? So I'm just going to move it to about here. You can pick whatever works for you. And that just added a key frame there, and we're going to come out another 10 frames to frame 70. And we just move the slider back. Now of course we need to add some easing to this so we'll just select the button layer and press the U key.
And you can see there are those three key frames that we just created for the histogram. So we'll just select the three key frames, right click, key frame assistant, easy ease. And if we deselect and just scrub across, you can see there's that tap. So there's just another way of indicating a button tap. Now let's turn our attention to the bread crumb trail. Onboarding experiences usually involve a number of screens that explain a certain aspect of the application or the webpage.
And the user usually clicks or swipes to move through the screens, and the use of a bread crumb trail three little dots, lets the user know how many screens are involved and where he or she is in that experience. This is commonly done through the use of a colored dot to indicate the current screen, so let's see how that works. So we're going to open the bread crumb comp so we'll just click on the project panel and open up the bread crumbs, there they are. And I'm just going to zoom in, come up to 100%, there they are.
And I'm just going to move it up a little bit here and I'm going to move up this panel just so we can see what we're doing. So what we're going to do is twirl down the dot one layer. Now these dots are basically shape layers, okay, so they're just little ellipses that were created in after effects. So you twirl down the dot one layer, twirl down the contents and there's the ellipse. And there's the start color, you can see there's the color there and there's the color there. So we're going to come out to the frame 30 mark so we'll just pull this out to 30 frames.
And we're just going to add a color key frame. Now we're going to pull the play head out to frame 80 and we're going to change the color to white. So we'll just click on the color chip, choose white on the color picker and there we go. And if I deselect and we scroll through, you can see that there's a faint change. If you can't see it on your screen let's zoom it up a little bit here, there we go.
And you can see there's a nice, smooth tween. Well we don't want that, what we want to have is this color to hold for the number of frames between the two key frames and then turn white. So what we want is an abrupt switch between the colors. So what we need to do is to hold the color until the next key frame. To accomplish this, you just select the first key frame right there and right click on it. And what you're going to do is you're going to select toggle hold key frame, and this will hold the current property until the color change.
So if we scrub across again, okay we're just going to deselect and scrub across, you can see it's holding and then boom, it's white. Okay let's deal with the second dot. Now this second dot will need to be treated a bit differently because it needs to go from white to the color and back to white, here's how. With the play head at frame 80 which is the last key frame of our first one, we can twirl down the dot two layer. And we can add a color key frame. And then we're going to come out to frame 110, and we're going to have the color change, and you can't remember what the color is but there is a way of getting it.
So we're just going to scroll up here a little bit, right there and we're just going to twirl down color, right there, see? And you can see there's a color switch right there. There's the original color, so we're going to change it from white to this color. So we just get the eyedropper tool and we click, and it turns to the flesh tone at that one and then we'll just come out to frame 160 and we'll just put it back to white. Click okay and we now have a white dot.
Now what we need to do here is not have this transition, okay so we're just going to toggle hold these two key frames. So we select the two key frames that we've changed, right click, toggle hold key frame, and if I twirl up the dot one and deselect and then scrub across, you can see it holds and then it turns white. Okay so we're here and now we're going to deal with the third dot. We're going to do the same thing. So we'll just twirl down dot three and at frame 160 we're going to add another color key frame.
And we're going to come out to frame 190 and we're going to change the color, and we'll just do it the same way we did it the last time. So we'll just twirl down the color, there we go, get the eyedropper, change the color at that frame and then we'll just scrub out to frame 240. Let me just zoom out here so you can see it, there we go. And we'll just change it back to white and again, I'll just grab these two key frames and toggle hold.
Now if you open the onboard screen comp, and I'm just going to pull this down so we can see it, and we'll just get back to the zero point, and I pressed the space bar, you can see that the dots change color. Okay so to finish this one off what we're going to do is we're going to go back to the main screen comp and I'm just going to open this up a bit, and twirl up a button and we're going to drag the onboard screen comp onto the timeline so we'll just put it up at the top there.
And we'll just move it across to frame 70 on the timeline, so we'll just come across to frame 70. And the first thing we want to do with this is to add a position key frame 'cause we're going to move it off screen. And then we're going to go ahead to frame 110, and add another key frame. And what we're going to do is come back to our first key frame here, and we're just going to push it off to the right, just like that. And again we'll just select the two key frames, add an easy ease, and if you want to play with the graph editor and play with the ease feel free, but here's what we've got.
So we'll just pull this down so you can see the whole thing. And then we'll just push the space bar and you can see the screens come in and the dots change. So there's an easy way to create a bread crumb trail and I showed you another way of changing the color of a button by just using a levels effect in after effects.
- Prototyping motion
- Using the Graph Editor
- Working with shapes and masks
- Supporting tap, press, and swipe gestures
- Handling pinch and spread gestures
- Designing patterns
- Making navigation, buttons, and breadcrumbs
- Creating progress bars
- Working with modals, menus, and cards
- Zooming content
- Making a floating action button
- Handling text input and cursors