search

Home  >  Q&A  >  body text

html - 电脑css3动画可以执行,手机基本不行,为什么,求救

demo

可以查看源代码,代码不多的,用手机和电脑浏览,注意那个充电头的动画

ringa_leeringa_lee2784 days ago629

reply all(3)I'll reply

  • 大家讲道理

    大家讲道理2017-04-17 11:27:10

    I tested it,
    Meizu note2 has animations on UC, Firefox, Chrome, and Meizu’s own browser.
    Only mobile Opera has no animation.
    lz you can try adding css prefix completion for different browsers.
    Or add a flag in the meta that the browser turns on the h5 mode.

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-17 11:27:10

    It is best to add the browser compatibility prefix to your code transition: all 5s linear 1s;. If you are using a browser with webkit kernel, it is best to write it like this

    -webkit-transition: all 5s linear 1s;
    transition: all 5s linear 1s;

    reply
    0
  • 高洛峰

    高洛峰2017-04-17 11:27:10

    On the mobile side, start using gpu to trigger the 3D effect of css3 and do not use js motion such as jquery. The performance will be significantly improved

    reply
    0
  • Cancelreply