This cross-platform library tends to make view animation shareable and easier for common scenarios like fade or scale entrance animations.
To install Xamarin.Animations, run the following command in the Package Manager Console.
PM> Install-Package Xam.Animations
The package adds an AnimateAsync
extension method to UIView
(iOS) / NSView
(macOS) / View
(Android) / UIElement
(Windows).
To start an animation with an IAnimation
.
await view.AnimateAsync(Animations.FadeIn());
await view.AnimateAsync(Animations.FadeIn(duration: TimeSpan.FromSeconds(0.5f)));
await view.AnimateAsync(Animations.FadeIn(duration: TimeSpan.FromSeconds(0.5f), delay: TimeSpan.FromSeconds(0.2f)));
- Adding WPF support
Contributions are welcome! If you find a bug please report it and if you want a feature please report it.
If you want to contribute code please file an issue and create a branch off of the current dev branch and file a pull request.
MIT © Aloïs Deniel