Files
docs-desktop/dotnet-desktop-guide/framework/wpf/graphics-multimedia/how-to-accelerate-or-decelerate-an-animation.md
T
Andy (Steve) De George 7f8394ee60 Update more main branch changes (#1008)
* Update build-validation.yml

* Update version-sweep.yml

* Update .acrolinx-config.edn

* Update .openpublishing.publish.config.json

* fix paths

* Update .github/workflows/build-validation.yml
2021-03-09 11:38:59 -08:00

1.3 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).