Learn how to animate paths with the Stroke effect and change the animation order.
- [Instructor] In this movie, we'll match the design of the original artwork and use the stroke effect to animate the path. So I've saved my progress, and I'm going to select the first layer over here, yellow solid number two, and then I'm going to fold it down as well as open up the effect and double click on the word stroke, and this should open up the effects controls and also select the word stroke. This is basically where we left off in the previous movie, and in order to see where we are, I'm going to also click on the toggle mask and shape path visibility button over here.
Now, in order to get myself a little bit of a reference, I'm going to switch off the visibility of the background which will expose underneath the original Adobe Illustrator document. Now I can return to the stroke effect, and I'm also going to zoom in so I can better see what I'm doing, and you can do it by pressing command plus or control plus on the PC. Now I'm going to click over here where it says brush size. Hold down shift and use the upper arrow in the keyboard in order to move in full increments, and I've found out that the value of eight pixels is going to work quite fine in this example, so I'm going to click away in order to approve the result.
Now we can see some of the original artwork drifting by, and this is because of this value, the spacing, so if you're using the stroke effect, you can actually determine the amount of spacing and achieve this unique look which is not appropriate in this design, but I just want you to see that you've got plenty of options using this effect, and this is one of the reason that I've chosen to start with it. The second reason is of course ease of use. So in this case, I want to take this as low as maybe 5% in order to mimic the original artwork as close as I can, and then I need to sample the yellow color which is kind of problematic now because we actually hidden the original artwork, but we've already established this color in the previous step, so I can choose this eye dropper and sample the color of the layer itself in order to match it to the original design.
Now we can zoom back out, maybe even fit it to the screen, and then I'm going to switch back the visibility of the background, so now we actually seeing the result of the stroke effect. Then I want to animate it, and it is super easy as promised. I'm going to use only one value in this case, and this will be the end value, so I'm going to scrub it all the way to zero, making sure that I'm at the first frame of the composition and create a keyframe over here. Then I'm going to move to two seconds and bring it all the way back to 100%.
If I'm going to go to the beginning, press space bar in order to view the result. We can see what we have so far which is okay, but the order of the stroke I mentioned is not making sense, meaning that we have the circle underneath which should serve as a shadow to the tower, and then we have the O. So we actually need to change and modify the order of the masks. Those masks were inherited when we've copied the illustration from Illustrator and paste it here inside After Effects, and if you want to be super geeky, you can actually return to Illustrator, change the order of the masks, and then repeat the first operation that we did, but since we already in the middle in the process of animating it, let's just fix it over here.
So in order to give us our some visual help, I'm going to switch back the visibility of masks and shape layers and also zoom in into the call. Let's also press and hold the space bar and move it so we can see the beginning of the word radio, and then what I need to do is identify the color of the masks that needs to be replaced, and if you're going to select the masks itself, you can see that After Effects is actually going to highlight it for you. So in this case, I can either scroll down, or I can just click on the mask that I need to move, and in this case, this is mask number one, and it's quite obvious because we already seen that this is the first mask being animated.
So I actually need to find the orange mask and drag it underneath. Now, the easiest way to work here, in my case at least, is to take the timeline to full screen by pressing on the tilde key, and here is the orange mask that represents the letter I, so we need to take our mask number one and place it underneath mask number eight. Then let's bring back all the other panels by clicking once again on the tilde, or you may call it the grave key. Go to the beginning and press space bar in order to test the result, and it looks like we are successful.
So let's zoom back out, and you can do it from the keyboard by pressing option and question mark or alt question mark on the Windows side, and then let's review it once again from the top. So I'm going to press space bar, and now we can see that the order of the layers is correct. However, we still have the problem with the surface over here or the shadow of the tower. Once again, we need to identify the mask, and in this case, this is mask number two, the first mask. So this wants to be at the bottom of the list.
Once again, I'm going to take my timeline to full screen. This time, I'm going to show you another shortcut. You can double click on the name of the timeline. This will create the same behavior. So I'm going to take mask number two, drag it all the way underneath mask number 25, and I'm going to double click once again over here to bring back all the other panels and also press space bar to review the result, and it looks okay in terms of the order, but not in terms of the animation. I want to create something more pleasant, some easy ease, and in order to achieve that, I'm going to make sure the layer is selected, and I'm going to go to the animation menu and choose this command, review properties with keyframes or you can press U on the keyboard.
This will show you all the properties that you've been animated. In my case, the end value of the stroke. So I'm going to click on the word end and it will select both keyframes, and then I'm going to go to the animation menu and under keyframe assistant, I'm going to convert it to an easy ease animation, and I'm going to review the result by going to the beginning and pressing space bar. This looks much more eased and nice, but I really want a slower animation at the beginning, so we will be able to read the word radio and then all the other lines should be exposed.
So while my two keyframes are still selected, I'm going to click on the graph editor icon which will allow me to modify the anchor points themselves. I'm going to click on the first one, and then I'm going to hold down shift and drag this handle to the middle of this square. Something like this should work. Let's review it by going back to the beginning of the timeline, pressing space bar. Now you can see that it looks much better. So this is how you match the original artwork design as well as use the stroke effect in order to animate those path.
- Animating strokes
- Animating scribbles and sketches
- Repeating and revealing shapes
- Using paint to reveal a logo
- Using time displacement
- Creating a particles reveal