Table of Contents

Class AnimationBase

Namespace
AlohaKit.Animations
Assembly
AlohaKit.Animations.dll

The AnimationBase class serves as an abstract base for animations, offering configurable properties such as duration, delay, easing, and repeat behavior.

public abstract class AnimationBase : BindableObject, INotifyPropertyChanged
Inheritance
AnimationBase
Implements
Derived
Inherited Members

Fields

DelayProperty

Bindable property for specifying a delay before the animation begins, in milliseconds.

public static readonly BindableProperty DelayProperty

Field Value

BindableProperty

DurationProperty

Bindable property for specifying the duration of the animation in milliseconds.

public static readonly BindableProperty DurationProperty

Field Value

BindableProperty

EasingProperty

Bindable property for specifying the easing type of the animation.

public static readonly BindableProperty EasingProperty

Field Value

BindableProperty

RepeatForeverProperty

Bindable property for specifying whether the animation should repeat indefinitely.

public static readonly BindableProperty RepeatForeverProperty

Field Value

BindableProperty

TargetProperty

Bindable property for specifying the target visual element of the animation.

public static readonly BindableProperty TargetProperty

Field Value

BindableProperty

Properties

Delay

Gets or sets the delay before the animation begins, in milliseconds.

public int Delay { get; set; }

Property Value

int

Duration

Gets or sets the duration of the animation, represented as a string in milliseconds.

public string Duration { get; set; }

Property Value

string

Easing

Gets or sets the easing type of the animation.

public EasingType Easing { get; set; }

Property Value

EasingType

RepeatForever

Gets or sets a value indicating whether the animation should repeat indefinitely.

public bool RepeatForever { get; set; }

Property Value

bool

Target

Gets or sets the target visual element for the animation.

public VisualElement Target { get; set; }

Property Value

VisualElement

Methods

Begin()

public Task Begin()

Returns

Task

BeginAnimation()

protected abstract Task BeginAnimation()

Returns

Task

End()

public void End()