From dc789c647d3e31db86df41d641b550611d461420 Mon Sep 17 00:00:00 2001 From: Tsvetomir Hristov <106250052+Tsvetomir-Hr@users.noreply.github.com> Date: Thu, 17 Apr 2025 15:26:56 +0300 Subject: [PATCH] docs(Window): add animation docs --- components/window/animation.md | 125 +++++++++++++++++++++++++++++++++ components/window/overview.md | 4 ++ 2 files changed, 129 insertions(+) create mode 100644 components/window/animation.md diff --git a/components/window/animation.md b/components/window/animation.md new file mode 100644 index 000000000..795b7a769 --- /dev/null +++ b/components/window/animation.md @@ -0,0 +1,125 @@ +--- +title: Animations +page_title: Animations +description: Learn about the animation options for the Telerik Window component in Blazor. +slug: window-animations +tags: telerik,blazor,window,animations +published: True +position: 4 +--- + +# Blazor Window Animations + +The Telerik Window component for Blazor provides an option to control the opening animations to enhance the user experience. You can configure the animation type and duration using the following parameters: + +## Parameters + +@[template](/_contentTemplates/common/parameters-table-styles.md#table-layout) + +| Parameter | Type and Default Value | Description | +|--------------------|------------------------------------|-------------| +| `AnimationType` | `WindowAnimationType` (`None`) | Specifies the type of animation used when the window opens or closes. Full list of animation types is listed in the section below. | +| `AnimationDuration`| `int` (`300`) | Defines the duration of the animation in milliseconds. | + +## WindowAnimation Types + +The `WindowAnimationType` enumeration includes the following options: + +* `None` (default) - No animation. +* `SlideUp` - Slides in from the bottom and slides out to the bottom. +* `SlideDown` - Slides in from the top and slides out to the top. +* `SlideRight` - Slides in from the left and slides out to the left. +* `SlideLeft` - Slides in from the right and slides out to the right. +* `PushUp` - Pushes in from the bottom and pushes out to the top. +* `PushDown` - Pushes in from the top and pushes out to the bottom. +* `PushLeft` - Pushes in from the right and pushes out to the left. +* `PushRight` - Pushes in from the left and pushes out to the right. +* `Fade` - Fades in and out. +* `ZoomIn` - Zooms in from a larger size to its actual size and zooms out by expanding before disappearing. +* `ZoomOut` - Zooms in from a smaller size to its actual size and zooms out by shrinking to the center. + +## Example + +````RAZOR +