How to keep animated gif running while doing intense calculations

后端 未结 7 1527
一向
一向 2020-12-06 05:15

I have a page which does some intense and long lasting calculations in Javascript. I would like to have a loading animation to tell the user progress is being made. I have a

7条回答
  •  长情又很酷
    2020-12-06 05:50

    CSS3 animations typically continue running even if JavaScript is blocking (tested with Chrome 40.0).

    So you can use libraries like SpinKit or spin.js to visualize that the calculation is ongoing.

    However, note the availability of CSS3 animations:
    caniuse.com
    Dispelling the Android CSS animation myths

提交回复
热议问题