Combining keyframes and behaviors – animating a clock
Let's take a look at another example of combining keyframes and behaviors by animating a clock's minute and hour hand while linking some text to rotate along with the clock.
How to do it...
From this chapter's exercises folder, open the
04_11
project. This project consists of a clock from Motion's library that contains separate layers for the hour and minute hand. There are also two text layers, as shown in the following image. We want the text to rotate along with the clock's hand. In order to achieve this, we're going to move both of the texts' anchor points to the center of the clock.On the toolbar, click and select the Anchor Point tool located underneath the selection tool, as shown in the following screenshot. Select the Hour Text layer and use the green and red arrows to move the anchor point to the center of the clock. Repeat this step for the other text layer.
Press Shift + S to go back to the selection tool. Let's keyframe the...