Class ToastEasing
Specifies the easing animation types for Toast notification transitions.
Inheritance
Namespace: Syncfusion.Blazor.Notifications
Assembly: Syncfusion.Blazor.dll
Syntax
public sealed class ToastEasing : Enum
Remarks
This enumeration defines the timing functions used for Toast animation effects. Easing functions control the rate of change during animations, affecting how smooth or abrupt the transitions appear.
Examples
Configuring easing animation for Toast:
<SfToast ShowEasing="ToastEasing.Ease" HideEasing="ToastEasing.Linear">
<ToastAnimationSettings>
<ToastShowAnimationSettings Easing="ToastEasing.Ease" />
<ToastHideAnimationSettings Easing="ToastEasing.Linear" />
</ToastAnimationSettings>
</SfToast>
Fields
Ease
Specifies an ease animation timing function that starts slow, accelerates, and then slows down.
Declaration
public const ToastEasing Ease
Field Value
Type |
---|
ToastEasing |
Remarks
This easing function provides a smooth and natural animation transition. The animation starts slowly, speeds up in the middle, and then slows down towards the end, creating a more visually appealing and organic motion effect.
Linear
Specifies a linear animation timing function that maintains constant speed throughout.
Declaration
public const ToastEasing Linear
Field Value
Type |
---|
ToastEasing |
Remarks
This easing function provides a uniform animation transition with consistent speed. The animation progresses at the same rate from start to finish, resulting in a mechanical and predictable motion without acceleration or deceleration.