Change animation interpolation between keyframes (Windows Phone)
Keyframe interpolation describes how property changes are animated in the span of time between two keyframes. Modifying the interpolation between keyframes can give you more realistic animations. For example, if you animate a ball bouncing, you can modify the interpolation between keyframes to slow down the transition as the ball rises in the air, and speeds up as it falls to the ground.
The following table describes ways in which you can set keyframe interpolation.
Method of keyframe interpolation |
Description |
---|---|
Use the KeySpline graph |
You can change the interpolation as the timeline playhead approaches a keyframe by using the KeySpline graph. This graph plots the values of the animated property over the time span between the selected keyframe and the previous keyframe. In general, the steeper the line, the faster the change in value at that point. When the graph is a straight line from the lower-left corner to the upper-right corner, the interpolation is linear. You can drag either yellow control point to change how quickly the property value changes after leaving the previous keyframe and going into the selected keyframe. |
Select an EasingFunction |
You can change the interpolation as the timeline playhead approaches a keyframe by using the EasingFunction drop-down menu that appears in the Properties panel when you select the keyframe. Blend for Visual Studio 2012 comes with several preset easing functions that you can choose from. Similarly to the KeySpline graph, the easing function is applied to the interpolation that occurs as the timeline playhead approaches the selected keyframe. Use the images on the buttons under the In, Out, and InOut columns to decide which easing function to use. The buttons under the In column will apply the chosen affect to the beginning of the KeySpine, the buttons under the Out column will apply the chosen affect to the end of the KeySpline, and the buttons under InOut will apply the affect to both. Choose the button that represents the way you want the KeySpline graph to look.
Note
Selecting an EasingFunction removes any previous interpolation effect that was applied to the keyframe.
|
Alternatively, you can make a transition between keyframes occur instantaneously instead of occurring over time by using the Hold In interpolation option.
Note
The following procedures assume that you have opened a storyboard that contains keyframes. For more information, see Open or close a storyboard (Windows Phone) or Create, modify, or delete a storyboard (Windows Phone).
Tip
The following procedures can be used when a single keyframe is selected, or when multiple keyframes are selected by holding down the Ctrl key.
To modify the transition from a keyframe
Do one of the following:
On the timeline bar, select the keyframe that follows the one from which you want to effect a gradual transition, and then, under Easing in the Properties panel, click KeySpline. Drag the yellow control point in the lower-left corner of the KeySpline graph.
On the timeline bar, select the keyframe that follows the one from which you want to effect a gradual transition, and then, under Easing in the Properties panel, click KeySpline. Drag the yellow control point in the lower-left corner of the KeySpline graph.
On the timeline bar, select the keyframe that follows the one from which you want to effect a gradual transition, and then, under Easing in the Properties panel, click EasingFunction. Click the drop-down arrow next to None, and then select one of the buttons next to an easing function.
To modify the transition to a keyframe
On the timeline bar, right-click the keyframe to which you want to change gradually.
Do one of the following:
Under Easing in the Properties panel, click KeySpline. Drag the yellow control point in the upper-right corner of the KeySpline graph.
Under Easing in the Properties panel, click EasingFunction. Click the drop-down arrow next to None, and then select one of the buttons next to an easing function.
Create an instantaneous transition to a keyframe
You can make a transition between keyframes occur instantaneously instead of occurring over time. The Hold In interpolation option creates an abrupt change to a new property value when the playhead reaches the keyframe where the new property value is recorded.
Do one of the following:
To create an abrupt transition to a keyframe
Do one of the following:
On the timeline bar, select the keyframe to which you want to change abruptly, and then, under Easing in the Properties panel, click Hold In.
On the timeline bar, right-click the keyframe to which you want to change abruptly, and then click Hold In on the drop-down menu that appears. A check mark appears next to Hold In on the drop-down menu.
Selecting Hold In removes any previous interpolation effect that was applied to the keyframe, and any previous outbound interpolation effect that was applied to the preceding keyframe on the timeline bar. The inbound interpolation effect that is applied to the subsequent keyframe on the timeline bar remains unaffected.
See Also
Tasks
Delete a keyframe (Windows Phone)
Make a keyframe (Windows Phone)
Paste or move a keyframe (Windows Phone)
Reuse interpolation values on other keyframes (Windows Phone)