Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
When it comes to combining keyframes and behaviors, you're actually getting the best of both worlds by getting the precise control through keyframe animation and combining that with some of the more organic animations you can create by using behaviors. So for this project, if you press the spacebar, you can see a preview of absolutely zero animation. So what's happening here, the scene is just waiting for us to start our animation, so let's press F5 to look at what we have got here. As you can see, we have our background layer and we have our four circles.
Now I want to go ahead and create an animation where the circle pops under the scene and then kind of shakes a little bit. So I'll use keyframes to create the precise scale from 0 up to 100, and then we'll use a parameter behavior to create kind of a wriggle. Just so we can focus on things more closely, I'm going to turn off the visibility of all the other circles except for this purple one, Then we select the purple layer, go to the Inspector, and let's make sure we are in the Property section of the Inspector, and let's create a keyframe animation.
Move your player back to the beginning by pressing the Home key and press A to turn on your automatic keyframe. Let's adjust the Scale of this down to 0. Now move your playhead further down the Timeline, let's say to about 1 second. Now at 1 second let's change our Scale back up to around 66%, which is kind of where we were before. Now we've actually created our first animation. If you press Home and then the spacebar, you'll see the circle scales right up.
Now what we need to do is add kind of wriggle effect to this scale. Now, before I go do that, I want to make sure to turn off automatic keyframing, so I'll just click on the button in the Timeline. Now just because I'm kind particular with my keyframe animations, I want to move my playhead back to the second keyframe by clicking this little left arrow here to the left of the scale keyframe. That way I know this is where I want the wriggle to start. So if you Ctrl+Click or Right-click on the word Scale, you'll get this contextual menu that pops up, and what you want to do is Add a Parameter behavior, and here we can choose the wriggle effect.
Now but what this actually going to do is create kind of a shake. The Apply mode, I want it to be both Add and Subtract, so it'll scale up and it will scale down. You won't actually see any animation until you increase the amount of the wriggle. Now also, we want to trim the start point of this behavior, because I would like this to scale without any wriggling going on whatsoever, so let's press I. I will automatically trim the in point of that behavior since I already had it selected in the Layers panel. Notice it updated here in my Mini Timeline.
Now if I deselect that layer so I don't see any bounding box, press Home, and preview the animation, you'll see I have the precise animation of the scale actually popping up, combined with the power of the wriggle. Now I want to take things one step further by decreasing the wriggle over time, and the easiest way to do that is to actually keyframe the parameter within the wriggle behavior. So we have keyframes to start, we have a behavior to finish, and then we're actually keyframe a parameter of the behaviors.
So let's position our playhead to around two seconds, and let's add our first keyframe for this wriggle amount. I can just click this plus button right next to the parameter, and I want this to stop wriggling by about 225, so I just drag down the Timeline. And we'll add our second keyframe just by clicking Add a Keyframe, and now I can just change this amount back to 0. So if we scrub through, you can see I have got my wriggle happening, and then it slowly subsides.
Now one of the things I like to do with behaviors if it's set at a 0 number when it's finished, I do like to trim the out point. So I'm going to position my playhead to a little bit after the second wriggle keyframe and press O. That's just going to trim that behavior, and that way I know it's definitely gone, but the problem with that is this: it really compressed that end of that wriggle parameter, and that's not what I want, so let's undo that.
What you need to do is actually just sort of be aware that yeah, you've added those keyframes, but if you do trim that out point of one of this parameter behaviors, it will scale any keyframing that you've done based on the percentage of scale difference you've created over the length of that behavior. So let's go ahead and deselect the behavior and preview our animation. Now obviously, we can continue tweaking this by making several adjustments, but I think you can see just how precise you can be by using your keyframe animations and just how powerful it is when you combine behaviors to just add that one extra bit of organic animation.
Get unlimited access to all courses for just $25/month.Become a member
110 Video lessons · 50522 Viewers
86 Video lessons · 13638 Viewers
79 Video lessons · 14884 Viewers
350 Video lessons · 101137 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.