airbnb / lottie-web

Render After Effects animations natively on Web, Android and iOS, and React Native. http://airbnb.io/lottie/
MIT License
30.34k stars 2.87k forks source link

Flicker on firefox #1740

Open OforgeO opened 5 years ago

OforgeO commented 5 years ago

Hello

The animation is working well on chrome Then the flicker happens on firefox When I refresh page, it doesn't show or flicker.... https://www.dropbox.com/s/ryoee324d4098e4/kk%202019-07-30%2004-05-03.avi?dl=0

And I code like as below $(document).ready(function () { var miss_container = document.getElementById('iframe_section');

    bodymovin.setLocationHref(location.href);
    animItem = bodymovin.loadAnimation({
      wrapper: miss_container,
      animType: 'svg',
      loop: false,
      autoplay: false,
      path: root+'assets/js/Miss1/data.json'
    });
    animItem.addEventListener('data_ready',function(){
        animItem.setSubframe(false);    
    });
           .....

};

But after few seconds, it works well.... What's the problem?

bodymovin commented 5 years ago

Hi, can you share the project files?

anuraggautam77 commented 3 years ago

Same issue I am facing in My project . On first page load flickering is coming in Firefox and works fine after reloading the page.

bodymovin commented 3 years ago

@anuraggautam77 hi, can you share a link?

hemakumark commented 3 years ago

Hi, Are there are any updates on this fix?

jeton-th commented 2 years ago

I have the same problem, on firefox only, flickering in the first 3-4 seconds.

bodymovin commented 2 years ago

@jeton-th can you share a link with an example of the issue?

jeton-th commented 2 years ago

@jeton-th can you share a link with an example of the issue?

www.agreewe.com

thaliemuk commented 1 year ago

same issue for me

XR2477 commented 1 year ago

Same issue here. Any one found solution?

Flaysh commented 1 year ago

Same here.. any solution?

absoluticecold commented 1 year ago

Here is a workaround for the Motion Designers! Offset your png sequence layers in your After effects Project with an extra frame, than there is no flickering. So basically they will overlap. take a look at the attached pic.

hope that makes sense!

Of course the file size gets bigger.

AfterFX_EwQVTWsRJa
lukesahula commented 3 weeks ago

Any updates on this? I am also experiencing this issue.

thevladdo commented 3 days ago

The workaround I found was to change the renderer from 'svg' to 'canvas' as shown below:

lottie.loadAnimation({
    container: lottieRef.current,
    renderer: 'canvas',
    loop: true,
    autoplay: true,
    path: pageHero.media[0].url,
    rendererSettings: {
        preserveAspectRatio: 'xMidYMid slice'
    }
});