Considerations for CSS3 Transition Performance

前端 未结 4 692
一个人的身影
一个人的身影 2021-02-02 01:43

As part of a project that needs to support mobile devices, I have been working on mimicking the iPhone toggle control using CSS3. I have the look and feel of the element pretty

4条回答
  •  独厮守ぢ
    2021-02-02 02:33

    I think it quite old already but for anyone who still needs tricks to improve the transition performance on mobile device, you can apply : -webkit-transform: translateZ(0); to the element you are animating. This trick is according to this blog : http://chrissilich.com/blog/fix-css-animation-slow-or-choppy-in-mobile-browsers/. I have tried and it works quite well.

提交回复
热议问题