--- title: "How to: Animate Camera Position and Direction Using Key Frames" ms.date: "03/30/2017" helpviewer_keywords: - "animation [WPF], camera direction with key frames" - "key frames [WPF], animating camera direction" - "animation [WPF], camera position with key frames" - "camera position [WPF], animating with key frames" - "key frames [WPF], animating camera position" - "camera direction [WPF], animating with key frames" ms.assetid: 5753024e-0057-454d-947f-43ea686879c7 --- # How to: Animate Camera Position and Direction Using Key Frames In the following example, is used to animate the position of a in a 3D scene. In addition, is used to animate the direction the camera is pointing in the 3D scene. Both of these animations use several key frames which create a series of animation effects: 1. and are used to create a smooth, linear interpolation between values. 2. and are used to create sudden "jumps" between values (no interpolation). 3. and are used to create a variable transition between values depending on the property. In the example below, the animation starts off slow but toward the end of the time segment, speeds up exponentially. ## Example [!code-xaml[Animation3DGallery_snip#PointVector3DAnimationUsingKeyFramesExampleWholePage](~/samples/snippets/csharp/VS_Snippets_Wpf/Animation3DGallery_snip/CS/PointVector3DAnimationUsingKeyFramesExample.xaml#pointvector3danimationusingkeyframesexamplewholepage)] ## See also - [Animate Camera Position and Direction in a 3D Scene](how-to-animate-camera-position-and-direction-in-a-3d-scene.md) - [3D Graphics Overview](3-d-graphics-overview.md)