Class FadeToAnimation
- Namespace
- AlohaKit.Animations
- Assembly
- AlohaKit.Animations.dll
The FadeToAnimation class adjusts the opacity of a target element over a specified duration.
public class FadeToAnimation : AnimationBase, INotifyPropertyChanged
- Inheritance
-
FadeToAnimation
- Implements
- Inherited Members
Fields
OpacityProperty
Bindable property for specifying the target opacity value of the animation.
public static readonly BindableProperty OpacityProperty
Field Value
Properties
Opacity
Gets or sets the target opacity for the animation.
public double Opacity { get; set; }
Property Value
Methods
BeginAnimation()
Begins the fade-to animation, adjusting the opacity of the target element.
protected override Task BeginAnimation()
Returns
- Task
A Task representing the asynchronous operation.
Exceptions
- NullReferenceException
Thrown if the Target property is null.