airbnb / lottie-web

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

Can not render canvas #2965

Open billychannnnnn opened 1 year ago

billychannnnnn commented 1 year ago

Tell us about your environment

What did you do? Please explain the steps you took before you encountered the problem.

  1. Generate a simple data.json(bodymovin version:5.11.0) file from AE with only a title and an image without any animation.
  2. Try to play that file with lottie(version: 5.11.0) according to this page;
  3. Set attr renderer to canvas;

What did you expect to happen? Canvas element rendered and image show.

What actually happened? Please include as much relevant detail as possible. Nothing show in canvas(no error in console). And after i change renderer to svg, everything works fine.

Please provide a download link to the After Effects file that demonstrates the problem. lottie file Code Pen

scolastico commented 11 months ago

I'm experiencing the same issue. However, we haven't made any updates, and it was functioning properly previously. Could this possibly be related to recent browser updates?