If this was useful to you, buy me a coffee to make my day!
await Task.WhenAll<bool>
(
heart.ScaleTo(2, 1000),
heart.FadeTo(0, 1000, Easing.SinInOut)
);
await Task.WhenAny<bool>
(
heart.ScaleTo(1, 0),
heart.FadeTo(1, 0)
);
new Animation {
{ 0, 0.125, new Animation (v => profile.TranslationX = v, 0, -13) },
{ 0.125, 0.250, new Animation (v => profile.TranslationX = v, -13, 13) },
{ 0.250, 0.375, new Animation (v => profile.TranslationX = v, 13, -11) },
{ 0.375, 0.5, new Animation (v => profile.TranslationX = v, -11, 11) },
{ 0.5, 0.625, new Animation (v => profile.TranslationX = v, 11, -7) },
{ 0.625, 0.75, new Animation (v => profile.TranslationX = v, -7, 7) },
{ 0.75, 0.875, new Animation (v => profile.TranslationX = v, 7, -5) },
{ 0.875, 1, new Animation (v => profile.TranslationX = v, -5, 0) }
}
.Commit(this, "AppleShakeChildAnimations", length: 500, easing: Easing.Linear, finished: (x, y) => _isAnimating = false);