Reading and writing DOM properties in a loop forces the browser to recalculate layout on every iteration.