What is the most performant CSS property for transitioning an element?

Posted by Ian Kuca on Programmers See other posts from Programmers or by Ian Kuca
Published on 2012-11-19T22:35:03Z Indexed on 2012/11/19 23:22 UTC
Read the original article Hit count: 316

Filed under:
|
|
|

I'm wondering whether there is a performance difference between using different CSS properties to translate an element. Some properties fit different situations differently.

You can translate an element with following properties: transform, top/left/right/bottom and margin-top/left/right/bottom

In the case where you do not utilize the transition CSS property for the translation but use some form of a timer (setTimeout, requestAnimationFrame or setImmediate) or raw events, which is the most performant–which is going to make for higher FPS rates?

© Programmers or respective owner

Related posts about JavaScript

Related posts about Performance