Class SpeedDialAnimationSettings
Provides a set of options to configure the animation behavior when opening and closing the popup of the SfSpeedDial component, enabling users to customize animation effects, durations, and delays. This helps create a visually appealing and responsive user experience.
Inheritance
Namespace: Syncfusion.Blazor.Buttons
Assembly: Syncfusion.Blazor.dll
Syntax
public class SpeedDialAnimationSettings : OwningComponentBase
Remarks
Use this class as a child component of SfSpeedDial to control the appearance and timing of opening and closing animations for Speed Dial popup items.
Examples
A simple SpeedDial with animation settings.
<SfSpeedDial Content="Edit">
<SpeedDialItems>
<SpeedDialItem Text="Cut"></SpeedDialItem>
<SpeedDialItem Text="Copy"></SpeedDialItem>
<SpeedDialItem Text="Paste"></SpeedDialItem>
</SpeedDialItems>
<SpeedDialAnimationSettings Effect="SpeedDialAnimationEffect.Zoom" />
</SfSpeedDial>
Constructors
SpeedDialAnimationSettings()
Declaration
public SpeedDialAnimationSettings()
Properties
Delay
Gets or sets the delay, in milliseconds, before starting the Speed Dial popup animation.
Declaration
public int Delay { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | An |
Remarks
Use this property to introduce a delay before the popup animation begins, allowing for more precise timing scenarios.
Examples
<SfSpeedDial Content="Menu">
<SpeedDialAnimationSettings Delay="150" />
</SfSpeedDial>
Duration
Gets or sets the duration, in milliseconds, that the animation takes to open or close the Speed Dial popup.
Declaration
public int Duration { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | An |
Remarks
This property determines how long the popup animation takes to complete when expanding or collapsing the SfSpeedDial items.
Examples
<SfSpeedDial Content="Options">
<SpeedDialAnimationSettings Duration="600" />
</SfSpeedDial>
Effect
Gets or sets the animation effect used for opening and closing the Speed Dial items popup.
Declaration
public SpeedDialAnimationEffect Effect { get; set; }
Property Value
Type | Description |
---|---|
SpeedDialAnimationEffect | A SpeedDialAnimationEffect value that specifies the animation effect. The default value is Fade. |
Remarks
The animation effect determines how Speed Dial popup items appear and disappear. Options include Fade, Zoom, and more.
Examples
<SfSpeedDial Content="Actions">
<SpeedDialAnimationSettings Effect="SpeedDialAnimationEffect.Zoom" />
</SfSpeedDial>
Methods
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
OnInitializedAsync()
Declaration
protected override Task OnInitializedAsync()
Returns
Type |
---|
System.Threading.Tasks.Task |