Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only Partial Animation is Showing #72

Closed
adamfisher opened this issue Jun 27, 2017 · 2 comments
Closed

Only Partial Animation is Showing #72

adamfisher opened this issue Jun 27, 2017 · 2 comments

Comments

@adamfisher
Copy link

I attempted to load the example Pink Drink Machine from the Lottie Files website. The animation works! It looks super cool. The only problem is it only renders part of the image. If you compare the bolts and the plunger in the canister, they do not even show up. It's like pieces of the animation are missing.

This is my Xamarin Forms code:

public partial class AnimationDemoAppPage : ContentPage
    {
        public AnimationDemoAppPage()
        {
            InitializeComponent();

            var animationView = new AnimationView()
            {
                Animation = "pink_drink_machine.json",
                Loop = true,
                AutoPlay = true,
                VerticalOptions = LayoutOptions.FillAndExpand,
                HorizontalOptions = LayoutOptions.FillAndExpand,
                BackgroundColor = Color.Yellow
            };

            Content = animationView;
        }
    }

And this is the resulting image on the iOS simulator. I also tried it on a real device. I also tried a different lottie file altogether and get the same result. I only added the yellow background to see if it made a difference in the bolts showing up. Any ideas on why the animation is only partially showing up?

@adamfisher
Copy link
Author

Anyone have any idea why only part of the animation would render? I am able to use the Lottie Previewer app and when I scan it loads correctly and in its entirety.

@martijn00
Copy link
Member

Try the latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants