Force browser to trigger reflow while changing CSS
Requesting the offsetHeight of an element does everything nicely. You can force a reflow using this function and passing it the element that styles have been changed on: function reflow(elt){ console.log(elt.offsetHeight); } And call this where reflows are needed. See this example: http://jsfiddle.net/9WX5b/2/ EDIT: recently needed to do this, and wondered if there was a … Read more