Skip to content

navkar/XamarinAnimations

Repository files navigation

Animation Screens

Home

Alt text

Buy me a coffee!

If this was useful to you, buy me a coffee to make my day!

Buy Me A Coffee

Heartbeat Animation

Source Code

   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)
    );

Screenshot

| Alt text |

Apple Shake Animation

Source Code

  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);

Screenshot

| Alt text |

References

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages