lottie-web icon indicating copy to clipboard operation
lottie-web copied to clipboard

Flicker on firefox

Open OforgeO opened this issue 5 years ago • 13 comments

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?

OforgeO avatar Jul 29 '19 21:07 OforgeO

Hi, can you share the project files?

bodymovin avatar Aug 01 '19 00:08 bodymovin

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

anuraggautam77 avatar Apr 09 '21 13:04 anuraggautam77

@anuraggautam77 hi, can you share a link?

bodymovin avatar Apr 10 '21 12:04 bodymovin

Hi, Are there are any updates on this fix?

hemakumark avatar Apr 14 '21 02:04 hemakumark

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

jeton-th avatar Jun 01 '22 09:06 jeton-th

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

bodymovin avatar Jun 12 '22 21:06 bodymovin

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

www.agreewe.com

jeton-th avatar Jun 13 '22 10:06 jeton-th

same issue for me

thaliemuk avatar Oct 03 '22 06:10 thaliemuk

Same issue here. Any one found solution?

XR2477 avatar Nov 24 '22 06:11 XR2477

Same here.. any solution?

Flaysh avatar Dec 08 '22 09:12 Flaysh

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

absoluticecold avatar Aug 04 '23 05:08 absoluticecold

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

lukesahula avatar Aug 22 '24 10:08 lukesahula

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'
	}
});

thevladdo avatar Sep 10 '24 14:09 thevladdo