Fix for webkit transition flicker.