Files
docs-desktop/dotnet-desktop-guide/framework/wpf/graphics-multimedia/how-to-accelerate-or-decelerate-an-animation.md
T
Andy De George da363692ff Initial WPF content migrated (#17)
* Reset branch for WPF changes

* Convert BMP to PNG; fix link-out-of-scope err

* Add snippets for WPF... 6794 files!!!!

* Add missing snippets

* update file updated between migration

* Fix paths to include

* update breadcrumb and toc

* fix index links

* fix index links

* fix index links

* fix markdown
2020-09-04 09:46:28 -07:00

1.2 KiB

title, ms.date, helpviewer_keywords, ms.assetid
title ms.date helpviewer_keywords ms.assetid
How to: Accelerate or Decelerate an Animation 03/30/2017
decelerating animation [WPF]
accelerating animation [WPF]
animation [WPF], accelerating
animation [WPF], decelerating
4f383b2c-f94d-4a4e-9a06-f56f5dae95f9

How to: Accelerate or decelerate an animation

This example demonstrates how to make an animation accelerate and decelerate over time. In the following example, several rectangles are animated by animations with different xref:System.Windows.Media.Animation.Timeline.AccelerationRatio%2A and xref:System.Windows.Media.Animation.Timeline.DecelerationRatio%2A settings.

Example

[!code-xamltimingbehaviors_snip#1]

Code has been omitted from this example. For the complete code, see the Animation Timing Behavior (C#) or Animation Timing Behavior (Visual Basic).