The last concept we are going to discuss for not is Easing. I am going to create one more Timeline which I am going to name Easing and I am going to create a keyframe at time 0 and a new keyframe at Time 4. At Time 4, I am going to move my sphere, so I have built a very basic animation.
You will notice, for Nonhandoff Animation, there is a small set of blue dots on the screen that indicate the path that the sphere is going to follow. Normally, these translations are interpolated linearly, which means the speed of the sphere at the beginning is the same as the speed of the sphere at the end. To change this, I can right click any of the properties and change their easing.
Easing indicates that as the time enters or exits a given keyframe, the interpolation should be slowed down to cause a nonlinear interpolation. I am going change the Ease out on this keyframe and you will notice that now, the X interpolation is moving in a different speed from the Y, so the path is changed. I am going to change the Easing on the Y as well and have it eased out to 100%. And now, you will see when I press play, the ball starts very slowly and speed up through the animation. Easing out refers to the speed as the time leads the given keyframe.
I can also change the Easing in on the end of keyframes to cause the ball to slow down as it reaches its end point. Now, the ball will start off slowly, speed up and then slowed down at the end. Easing can only be used for animations that have a distinct start and end point. So unfortunately, they cannot be used for Handoff Animations like we used elsewhere. But for any animation that has a starting and ending keyframe, Easing can be used.
Between Keyframe Animation, Motion-Path Animation and Handoff Animations combined with event triggers, you can see how to control your animations interactively without having to write any code at all. This is one of the strengths of the Windows Presentation Foundation and should allow far more interactivity in future applications.
Transcription by:
Scribe4you Transcription Services