Considerations for CSS3 Transition Performance

前端 未结 4 693
一个人的身影
一个人的身影 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:32

    Chrome has recently improved the 2D transition performance, and now this trick is no longer needed. The best thing is that if removed the translate3d you'll no longer have those z-index problems! Use the test to prove. http://stickmanventures.com/labs/demo/spinning-gears-Chrome-preserve-3d/

提交回复
热议问题