# Animations

The Telerik UI Window for ASP.NET Core allows you to customize the animation effects upon display via the [`Animation()`](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/windowbuilder#animationsystemboolean) configuration option.

The Following example demonstrates how you can configure the [Animation effects](https://www.telerik.com/aspnet-core-ui/documentation/api/Kendo.Mvc.UI/EffectsBuilder) for the Window:

```Razor HtmlHelper
@(Html.Kendo().Window()
    .Name("window")
    .Title("Window")
    .Animation(animation =>
    {
        animation.Open(open =>
        {
            open.Zoom(ZoomDirection.In);
            open.Fade(FadeDirection.In);
            open.Duration(500);
        });

        animation.Close(close =>
        {
            close.Reverse(false);
            close.Zoom(ZoomDirection.Out);   
            close.Fade(FadeDirection.In);
        });
    })
    .Content("Window Content")
)
```

```Razor TagHelper
<kendo-window name="window" title="Window">
    <popup-animation enabled="true">
        <open effects="zoom:in fade-in" duration="500" />
        <close effects="zoom:out fade-in" duration="350" reverse="false" />
    </popup-animation>
    <content>Window Content</content>
</kendo-window>
```

## See Also

* [Adding Animation Effects to the Window (Demo)](https://demos.telerik.com/aspnet-core/window/animation)
* [Server-Side API of the Telerik UI Window for ASP.NET Core](https://www.telerik.com/aspnet-core-ui/documentation/api/window)
* [JavaScript API Reference of the Window](https://docs.telerik.com/kendo-ui/api/ui/window)
