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

Shaking issue on iOS browsers

Open mas-iota opened this issue 4 years ago • 5 comments

Animations on desktop browsers works as expected, however when tested on iOS browsers (chrome, safari), it appears there is some sort of shaking (element position is going up and down)

103820311_389865961955031_5843201758760203942_n

mas-iota avatar Jun 08 '20 14:06 mas-iota

I'm having the same issue on iOS and macOS safari. It looks like the svg itself is changing height when it animates.

Removing the height:100% style attribute from the SVG in inspect mode fixes the problem, but since it's not set up as a css variable there's no way to edit it.

Example here (scroll down to the animated icons about 2/3rds of the way down): http://robb.green/pen-centenary

Thanks!

robb-g avatar Jun 10 '20 09:06 robb-g

@robb-g I used airbnb's web library and tested again, worked perfectly!

mas-iota avatar Jun 12 '20 08:06 mas-iota

@mas-iota ha me too! Not difficult to implement either. Cheers MAS!

robb-g avatar Jun 12 '20 08:06 robb-g

怎么解决的,我也遇到ios浏览器抖动问题?上面链接打不开了

sijinglei avatar Mar 19 '21 14:03 sijinglei

I had this same issue with Lottie. Ended up just targeting the svg with CSS and slapping an height: auto!important on it. That solved the shaking for me. I know it's a no no but was limited on time. Interested in anyone who has a better idea. FWIW, the renderer: 'canvas' was not an option for us as the quality got super low with that.

WillDosSantos avatar Jun 03 '21 06:06 WillDosSantos