Fix for transition flickering in webkit browsers.