Suppose I have 10 elements on a page.
At the current moment I'm iterating them in a loop changing width and position:
el[i].style.width = ....
el[i].style.left = ....
I'm wondering if the animation could run faster if I tell the browser to re-render all elements only once, after the loop has finished
transition:all 1s linear;So when you change any property on the element, it will be transitioned to its new value. If need be, you could specify separate transitions for each property that you care about:transition:width 1s linear, left .5s ease-in-out;etc