I wonder how to Animate opacity of elements visible on screen. For example for Entry I got to this:
this.Animate("", d =>
{
Debug.WriteLine("anim:" + d);
Username.Opacity = (AnimationTime - d) / AnimationTime;
}, 0, AnimationTime);
but I wonder if there is easier way. Unfortunately Animate method is poorly documented.
Use the YourLabel.FadeTo() method. For example, if you define the opacity to 0 starting the app,
await MyLabel.FadeTo (1, 2000, Easing.Linear);
means : the animation (changing opacity here) will last for 2000 ms linearly passing from 0 to 1.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With