Class DialogAnimationOptions
The animation options for the built-in dialogs shown using ConfirmAsync(String, String, DialogOptions), AlertAsync(String, String, DialogOptions) and PromptAsync(String, String, DialogOptions) methods.
Inheritance
Namespace: Syncfusion.Blazor.Popups
Assembly: Syncfusion.Blazor.dll
Syntax
public class DialogAnimationOptions : Object
Remarks
This class provides properties to control the animation behavior when opening and closing dialogs, including delay, duration, and animation effects.
Constructors
DialogAnimationOptions()
Declaration
public DialogAnimationOptions()
Properties
Delay
Gets or sets the delay in milliseconds to start the animation.
Declaration
public int Delay { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | An System.Int32 representing the amount of time in milliseconds to delay animation before start. The default value is |
Remarks
This property allows you to introduce a delay before the dialog animation begins, which can be useful for creating sequential animations or timing effects.
Duration
Gets or sets the duration in milliseconds that the animation takes to open or close the dialog.
Declaration
public int Duration { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | An System.Int32 representing the amount of time in milliseconds to complete the animation. The default value is |
Remarks
This property controls how long the dialog takes to animate in or out. Shorter durations create snappier animations, while longer durations create smoother, more gradual transitions.
Effect
Gets or sets the animation effect to apply when opening and closing the dialog.
Declaration
public DialogEffect Effect { get; set; }
Property Value
Type | Description |
---|---|
DialogEffect | A DialogEffect value representing the animation effect. The default value varies based on the dialog type. |
Remarks
If the user sets Fade animation, the dialog will open with the FadeIn
effect and close with the FadeOut
effect.
The following are the list of animation effects available to configure:
Fade
, FadeZoom
, FlipLeftDown
, FlipLeftUp
, FlipRightDown
, FlipRightUp
,
FlipXDown
, FlipXUp
, FlipYLeft
, FlipYRight
, SlideBottom
, SlideLeft
,
SlideRight
, SlideTop
, Zoom
, and None
.