Follow these steps for animating page transitions with Xamarin.Forms.

A Step-by-step Guide to Animate Page Transitions Using Xamarin.Forms

Page transitions play a crucial role in keeping your users entertained when the content of your website is loading. Moreover, if you animate page transitions, it will ensure a smooth user experience. It can help you draw more traffic and boost your sales. 

Over the years, Xamarin has gained momentum for adding animated effects in applications, thanks to Xamarin.Forms. It comes with an animation infrastructure that enables Xamarin app development companies to create animations. If you are ready to animate page transitions of your web app, keep reading. Below, we have listed a complete guide to producing animations with Xamarin.Forms. 

  • An ultimate guide to achieving transition animations in Xamarin.Forms

Xamarin.Forms is an ideal solution for adding cool transition animation to your application. But to make this process easier, you need the NuGet package SharedTransitions. Let us learn how to do it. 

  1. Installing the NuGet package SharedTransitions
    The first step is to install the NuGet package SharedTransitions in your Xamarin project. It is a Xamarin plugin for Android and iOS. It helps you animate Shared Transitions between pages. Use this command:
    Install-Package Xamarin.Plugin.SharedTransitions.
  2. Using SharedTransitionNavigationPage
    It is advisable to avoid using the default NavigationPage for navigating the Xamarin application. Instead, use SharedTransitionNavigationPage, especially if you are using Prism.
  3. Specifying transition animation/duration/group
    In the next step, you need to identify three properties on the page you are using for navigation. These are:

    • BackgroundAnimationYou can use it for 6 types of animations such as SlideFromLeft, Fade, Flip,, SlideFromRight, SlideFromBottom and  SlideFromTop. 
    • TransitionDurationIt refers to the milliseconds for shared transition. 
    • TransitionSelectedGroupIt is a unique group. You can use it to associate transition groups. Besides this, it can be used as an ID for the selected element.
  4. Adding the name and group
    In this, you need to specify the element’s name and group on the page you want to navigate. For example, you are navigating from HomePage, so add the name and group. It involves stating two properties, such as:

    • TransitionName – It refers to the transition name. You use it to identify views between pages.
    • TransitionGroup – It is a distinctive identifier that can act as an ID.
  5. Adding the navigation to the respective page
    It is time to add navigation to the page from where you are navigating. Before doing so, it is necessary to set the TransitionSelectedGroup. 

In closing 

Congratulations on learning how to animate transitions between pages! It will ensure smooth navigation and the user experience of your Xamarin app. But for a successful project, hire an experienced Xamarin app developer.

If you are searching for a reliable Xamarin app development company, contact DigiDuck. We house a team of highly proficient Xamarin developers.


  1. Why use Xamarin.Forms for page transition animation?

    Xamarin.Forms is the best solution for animating page transitions. It comes with a built-in animation infrastructure and NuGet package SharedTransitions.

  2. What is an animation page transition?

    An animation transition refers to when the appearance of the page looks in motion when users load an application.

  3. What is the primary benefit of animating the transition?

    One of the benefits of animating page transitions is to engage users during object manipulations and state changes.