menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ToastEasing - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ToastEasing

    Specifies the easing animation types for Toast notification transitions.

    Inheritance
    System.Object
    ToastEasing
    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.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved