translate3d vs translate performance

后端 未结 3 497
遥遥无期
遥遥无期 2021-01-31 07:24

We now all know, particularly from that nice article, that we should prefer css-transforms to animate position.

But we got the choice between translate() an

3条回答
  •  感动是毒
    2021-01-31 07:39

    The use of translate3d pushes CSS animations into hardware acceleration. Even if you're looking to do a basic 2d translation, use translate3d for more power! So 'T3d' is just better because it tells the CSS animations to push the animations in 3d power! That's why it is faster. (The answer of Cameron Little is the proof)

提交回复
热议问题