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()
and translate3d()
...
Which one is generally faster?
This site below runs tests comparing translate()
, translate3d()
, and a couple other properties. According to it, translate3d()
is faster in most browsers.
http://jsperf.com/translate3d-vs-xy
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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With