Creating Custom Animations with .NET MAUI Community Toolkit
The Community Toolkit includes BaseAnimation and BaseAnimation<IAnimatable> as starting points for reusable animations, and both already provide Length and Easing properties along with an abstract Animate method. Vladislav puts them to work with a cartoon-style example: a sun that rotates and scales, applied to any VisualElement, including a wheel.
He then builds a CloudAnimation for a custom Cloud control, running translation and scale animations concurrently, to show the typed variant in action. Finally, AnimationBehavior brings the same animation into XAML, where it can play when a command is called or when the user taps the control.
It’s a compact introduction if you want animations you can define once and reuse across pages. The full sample is on GitHub.