Declarative & implicit animations Library for Xamarin Forms
Switch branches/tags
Nothing to show
Clone or download
Latest commit c3b0380 Aug 11, 2018

Xamarin Transitions

Declarative & implicit animations Library for Xamarin Forms. Build status

Nuget Packages

Supports Android and iOS. UWP is my personal highest priority, but it and other platforms may require community work. NuGet Status

Why Not Xamarin.Forms.Animation?

Xamarin Forms provides a common animation API, especially powerful with its async/await structure and extensibility. For many apps, it may be all that is necessary. However, it operates by setting up its own timing and modifying native view propertiies as it goes. This means the platform's hardware acceleration around animations can't be leveraged. Our experience was a sluggish feel that didn't "pop" the way a native app would.


To automatically animate the opacity of an element, simply add the transition to its attached property. Any property changes will then be animated according to the declaration.


<Grid x:Name="StatusIndicator">
      <trans:OpacityTransition />

    <DataTrigger Binding="{Binding IsProcessing}" Value="False" TargetType="Grid" >
      <Setter Property="Opacity" Value="0" />

Or triggered in code-behind:

StatusIndicator.Opacity = 0;


For the common implementation to resolve platform animations, it must be given an ITransitionProvider. Each platform has one built in, but you are welcome to override it should needs arise. Generally, you will initialize it with: