Class ToastAnimationSettingsModel
Represents the animation settings configuration for Toast notifications.
Inheritance
Namespace: Syncfusion.Blazor.Notifications
Assembly: Syncfusion.Blazor.dll
Syntax
public class ToastAnimationSettingsModel : Object
Remarks
This class defines the animation behaviors for both showing and hiding Toast notifications. It allows you to configure different animation effects, durations, and easing functions for Toast display and dismissal.
Examples
var animationSettings = new ToastAnimationSettingsModel
{
Show = new ToastAnimationsModel
{
Effect = ToastEffect.SlideTop,
Duration = 300,
Easing = ToastEasing.EaseIn
},
Hide = new ToastAnimationsModel
{
Effect = ToastEffect.SlideBottom,
Duration = 200,
Easing = ToastEasing.EaseOut
}
};
Constructors
ToastAnimationSettingsModel()
Declaration
public ToastAnimationSettingsModel()
Properties
Hide
Gets or sets the animation configuration to be applied while hiding the Toast.
Declaration
public ToastAnimationsModel Hide { get; set; }
Property Value
Type | Description |
---|---|
ToastAnimationsModel | A ToastAnimationsModel instance that defines the hide animation properties. Can be |
Remarks
This property controls the visual transition effect when the Toast notification is being dismissed or closed. You can specify the animation effect, duration, and easing function to create smooth hide transitions. If not specified, the Toast will use default hide animation behavior.
Show
Gets or sets the animation configuration to be applied while showing the Toast.
Declaration
public ToastAnimationsModel Show { get; set; }
Property Value
Type | Description |
---|---|
ToastAnimationsModel | A ToastAnimationsModel instance that defines the show animation properties. Can be |
Remarks
This property controls the visual transition effect when the Toast notification is being displayed. You can specify the animation effect, duration, and easing function to create smooth entrance transitions. If not specified, the Toast will use default show animation behavior.