DEV Community

David Ortinau for .NET

Posted on

3

Adding to Lottie Animations to Xamarin.Forms

Lottie is a simple file format that brings expressive animations from programs like After Effects to your applications. These are great for complex animations such as you might use in an onboarding flow, and simple animations for providing meaningful user feedback.

Lottie Files hosts tons of ready-made and even free animations if you choose to not make your own.

<forms:AnimationView
x:Name="animationView"
Animation="resource://Resources.41812-christmas-tree.json?assembly=Lottiemas"
AnimationSource="EmbeddedResource"
AutoPlay="True"
BackgroundColor="Red"
RepeatCount="3"
RepeatMode="Restart"
VerticalOptions="FillAndExpand"
HorizontalOptions="FillAndExpand" />
view raw Lottie.xaml hosted with ❤ by GitHub

Resources:




Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay