# .NET MAUI SideDrawer Transitions

Transitions are the animation effects applied to the side drawer while being opened and closed. The following properties are related to the SideDrawer transition:

* `DrawerTransitionDuration`(`double`)—Defines the duration of the chosen transition.
* `DrawerTransitionType`(enum of type `Telerik.Maui.Controls.SideDrawerTransitionType`)—Defines the transition of the component. This property can be set to one of the following values:
  * `Fade`, `Push`, `Reveal`, `ReverseSlideOut`, `ScaleUp`, `SlideAlong`, `SlideInOnTop`, `Custom`
* `DrawerTransitionFadeOpacity`(`double`)—Defines the opacity of the fade layer of the component. This controls the fade layer opacity on Android and WinUI or the dim opacity on iOS and MacCatalyst. The opacity value is different on different platforms. Review the [Making SideDrawer Opacity Consistent across Platforms](https://www.telerik.com/maui-ui/documentation/knowledge-base/make-sidedrawer-opacity-consistent-across-platforms-net-maui) how-to article for more details.

## Built-in Transitions

The SideDrawer exposes predefined transitions. Set the transition type by using the `DrawerTransitionType` property of the SideDrawer.

`DrawerTransitionType` is enumeration and exposes the following members:

* `Push` (the default one)
* `Fade`
* `Reveal`
* `ReverseSlideOut`
* `ScaleUp`
* `SlideAlong`
* `SlideInOnTop`
* `Custom`

Here is a sample snippet on how you can set `DrawerTransitionType` property of `RadSideDrawer`:

```XAML
<telerik:RadSideDrawer x:Name="drawer" 
                       Grid.Row="1" 
                       DrawerLength="250">
    <telerik:RadSideDrawer.MainContent>
        <StackLayout Orientation="Vertical">
            <Label Text="Transition Type:" />
            <telerik:RadListPicker WidthRequest="300" 
                                   x:Name="picker" BindingContext="{x:Reference drawer }" 
                                   SelectedItem="{Binding DrawerTransitionType, Mode=TwoWay}" />
        </StackLayout>
    </telerik:RadSideDrawer.MainContent>
    <telerik:RadSideDrawer.DrawerContent>
        <Grid>
            <telerik:RadCollectionView x:Name="drawerList" />
        </Grid>
    </telerik:RadSideDrawer.DrawerContent>
</telerik:RadSideDrawer>
```

Use the following namespace:

```XAML
xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui" 
```

> tip In addition to the transition type, you can also control the transition duration and opacity value through `DrawerTransitionDuration` and `DrawerTransitionFadeOpacity` properties, respectively. For more details on this go to [Configuration](https://www.telerik.com/maui-ui/documentation/controls/sidedrawer/configuration) topic.

### Examples

Check below some of the predefined transitions of `RadSideDrawer`.

* Default Push transition:

  ![.NET MAUI SideDrawer Push transition](https://www.telerik.com/maui-ui/documentation/assets/b86295f305c5e43d9cfd9f63267a344d/sidedrawer_push.gif)

* `SlideInOnTop` transition - the drawer goes over the main content:

  ![.NET MAUI SideDrawer Slide In On Top transition](https://www.telerik.com/maui-ui/documentation/assets/44762e2861af28344a6ef2ef364d663f/sidedrawer_slidein.gif)

* `ReverseSlideOut` transition:

  ![.NET MAUI SideDrawer Reverse Slide Out](https://www.telerik.com/maui-ui/documentation/assets/0b31ca730fa389ec8c4735c93f4af96b/sidedrawer_reverseslideout.gif)

> For a runnable example with the SideDrawer Transitions scenario, see the [SDKBrowser Demo Application](https://www.telerik.com/maui-ui/documentation/demos-and-sample-apps/sdkbrowser-app) and go to **SideDrawer > Features**.

## See Also

* [Events](https://www.telerik.com/maui-ui/documentation/controls/sidedrawer/events)
* [Configuration](https://www.telerik.com/maui-ui/documentation/controls/sidedrawer/configuration)
* [Commands](https://www.telerik.com/maui-ui/documentation/controls/sidedrawer/commands)
